Scripting/Squirrel/Functions/Object.RotateTo

From Vice City Multiplayer
Revision as of 23:46, 21 December 2015 by Luis labarca (talk | contribs) (Created page with " '''Syntax''' <pre> function onScriptLoad() { Obj<-CreateObject(502, 0, Vector(-897.355, -339.4, 13.6187), 255); } </pre> '''Example''' <source lang=squirrel> function...")
(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

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