Scripting/Squirrel/Functions/Quaternion
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