Revision [812]

This is an old revision of Move made by EditorDeas on 2010-07-29 20:41:37.
 
Usage
Syntax: move(float dx, float dy, float time(speed), int options)

Explanation

Will move the NPC forward to the x/y and speed summited
Options:
cachtype(0,1,2) + blockcheck(4) + eventwhendone(8) + applydir(16)

Example

//#CLIENTSIDE
function onCreated()
{
  temp.dx = 1;
  temp.dy = 2;
  temp.time = 0.5;
  this.move(dx, dy, time, 0);
}

... Will move the NPC one x to the right and two y down.

Categories

CategoryObjectFunction
CategoryFunctionClientside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
⚡ WEB1 (144.76.42.176) — Testing Environment ⚡