Scripting/Squirrel/Functions/Quaternion

From Vice City Multiplayer
Revision as of 05:25, 22 February 2015 by NE.CrystalBlue (talk | contribs)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing


This page needs a description, or needs a better one. Please help us complete the wiki by writing one.


Syntax

Quaternion( X, Y, Z, W )

Arguments

  • float X - X coordinate
  • float Y - Y coordinate
  • float Z - Z coordinate
  • float W - Rotation

Example

function onPlayerCommand( player, cmd, passed )
{
     if ( cmd == "resetangles" )
     {
          player.Angle = Quaternion(0, 0, 0, 0);
     }
}

Notes

Quaternion is used for locating fourth dimensional points


Related Functions