Scripting/Squirrel/Functions/Object.RotateTo
This wiki is using an old backup from 2020
Some information may be old/missing
Syntax
function onScriptLoad() { Obj<-CreateObject(502, 0, Vector(-897.355, -339.4, 13.6187), 255); }
Example
<source lang=squirrel>
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "objectrotateto" )
{
Obj.RotateTo( Quaternion(0.0000000000, 0.0000000000, 0.0000000000, -1.0000000000), 0 );
}
}