Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
The title pretty much explains it, it is for a game were the player is a turret and there defending there base, any idea on how I could do that? Thanks, |
||||
|
i start teach all this "non code" stuff, so here some base turret example https://drive.google.com/file/d/... i feel better with js but now i'm sick and try something new for me, so don't judge me too much))) |
||||
|
Thanks I'd like to think I'm pretty good at scripting I haven't learned allot about coppercubes API. |
||||
|
do you have any idea if this is possible with a mouse? |
||||
|
With js easy))) but now is 5 a.m. and i go sleep so after 8-9 hours i will add some example |
||||
|
Nevermind I found a already made script I appreciate you replying though. |
||||
|
checkout https://neophyte.cf , you will find extension, rotate with mouse or look towards target, that you can use for creating turret, also there is this video by JIC on his youtube channnel. https://youtu.be/NkBBAdtIh9M There are also many other examples by many users, you can try checking @sven's tank project and his itch.io page for turret example. https://5v3n.itch.io/ |
||||
|
I did figure out a way to get what I was looking for, the only thing I'm having a problem with is the constraints part I can't seem to get it to stop smoothly and come back smoothly. I appreciate your help though |
||||
|
Have you tried a script where it takes the rotation and if it's less than say 180 than allow it to keep rotating else do nothing Hope that might help |
|