Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: ForOver on Oct 18, 2017, 10:18 AM

Title: vehicle.flip command
Post by: ForOver on Oct 18, 2017, 10:18 AM
Guys i need the command "vehicle flip" please help.
Title: Re: vehicle.flip command
Post by: D4rkR420R on Oct 18, 2017, 11:24 AM
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 (http://squirrel-lang.org/squirreldoc/reference/language/lexical_structure.html) site to collect information. Hopefully it helps you! ;)
Title: Re: vehicle.flip command
Post by: ForOver on Oct 18, 2017, 12:03 PM
no is not that, I mean "when vehicle is Down. then use /flip to flip vehicle"
Title: Re: vehicle.flip command
Post by: NicusorN5 on Oct 18, 2017, 01:36 PM
*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.
Title: Re: vehicle.flip command
Post by: D4rkR420R on Oct 18, 2017, 04:07 PM
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.