Team Spartan Cookies & Milk Forums
engine rotation on ship using starfall chat command - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: engine rotation on ship using starfall chat command (/thread-2743.html)



engine rotation on ship using starfall chat command - samstertrek - 10-07-2018

hello,
i would like to build a ship on witch its engines rotate in a VTOL
fasion. Is there any way to allow the four engines to rotate 90 degrees using a chat command
to face forward and then facing downward on another command in starfall.


RE: engine rotation on ship using starfall chat command - Kosmos - 12-07-2018

Option 1: You make your engines holograms, parent them somewhere and use setAng. If you want smooth rotations use setAngVel. I believe the latter is local to the parent, but I'm not too sure about that.
Option 2: You use a normal prop, in which case you can still use setAng. Smooth rotations will be a bit tricky and they involve enhanced performance cost.
Option 3: There's a thing called a servo. It's supposed to do just what it sounds like, but I'm not sure they work properly - if they do I do not really understand them.