Scripting/Squirrel/Functions/Quaternion: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
No edit summary
Line 1: Line 1:
{{Scripting/Needs_Text}}


== Syntax ==
== Syntax ==
Line 21: Line 20:
     }
     }
}</source>
}</source>
== Description ==
Quaternion is used to locate fourth dimensional points


=== Notes ===
=== Notes ===


Quaternion is used for locating fourth dimensional points
Prefer to use Vector as it is easier





Revision as of 05:28, 22 February 2015

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