vehicle.flip command

Started by ForOver, Oct 18, 2017, 10:18 AM

Previous topic - Next topic

ForOver

Guys i need the command "vehicle flip" please help.

D4rkR420R

http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Quaternion
This should give you an idea.
P.S. I suggest you observe people's scripts to gather some scripting knowledge, or you could visit this site to collect information. Hopefully it helps you! ;)

ForOver

no is not that, I mean "when vehicle is Down. then use /flip to flip vehicle"

NicusorN5

*facepalm*
Learn to script, you wont learn a shit from Ctrl+C and Ctrl+V . Go google some C# tutorials then you will know how to make your goddammit commands and shitty systems.

D4rkR420R

Quote from: ForOver on Oct 18, 2017, 12:03 PMno is not that, I mean "when vehicle is Down. then use /flip to flip vehicle"

Exactly, Quaternion is used to locate fourth dimensional points (x, y, z, w) to rotate the vehicle. W in the parameters of Quaternion is the rotation. If your vehicle is upside-down or in a position where it can continue to drive freely, set the quaternion to (0,0,0,0) to rotate the vehicle back to normal.