Difference between revisions of "Set.dir"
From AGI Wiki
Jump to navigationJump to search (Created page with "set.dir == <br />Syntax == <blockquote><code>set.dir(oA,vDIR);</code></blockquote> == <br />Description == The direction of object oA is changed ot vDIR. vDIR must...") |
|||
Line 11: | Line 11: | ||
The direction of object oA is changed ot vDIR. vDIR must be between 0 and 8: | The direction of object oA is changed ot vDIR. vDIR must be between 0 and 8: | ||
− | [[File:MovingObjects.png]] | + | <blockquote>[[File:MovingObjects.png]]</blockquote> |
− | |||
You can not set the direction of ego (object 0). Instead, change the value of v6 to the direction you want. | You can not set the direction of ego (object 0). Instead, change the value of v6 to the direction you want. |
Revision as of 18:10, 30 December 2013
set.dir
Syntax
set.dir(oA,vDIR);
Description
The direction of object oA is changed ot vDIR. vDIR must be between 0 and 8:
You can not set the direction of ego (object 0). Instead, change the value of v6 to the direction you want.
To find out what direction an object is currently travelling in, use the get.dir command.
Sources
See also