Scripting/Squirrel/Functions/Object.RotateTo: Difference between revisions
Jump to navigation
Jump to search

This wiki is using an old backup from 2020
Some information may be old/missing
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...") |
(No difference)
|
Revision as of 23:46, 21 December 2015
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 );
}
}