Scripting/Squirrel/Functions/Quaternion

From Vice City Multiplayer
Revision as of 18:01, 30 January 2017 by Thijn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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);
     }
}

Description

Quaternion is used to locate fourth dimensional points


Notes

Prefer to use Vector as it is easier


Related Functions