You are viewing an old version of this page. Return to the latest version.
Version of 21:10, 11 September 2013 by I need to Update My Profile
No categories assigned
LUA:MoveToLocation
- Last edited 5 years ago by Vlash Nytefall
LUA Functions: MoveToLocation()
Has the spawn move to the given location
Syntax
MoveToLocation(param1, param2, param3, param4)
Parameters
- Required - param1 (Spawn), param2 (float), param3 (float), param4 (float)
- param1 is the spawn to move
- param2 is the x coordinate to move to
- param3 is the y coordinate to move to
- param4 is the z coordinate to move to
Usage
function hailed(NPC, Spawn)
MoveToLocation(NPC, 10, 0, 20)
end
When hailed the NPC will move to 10, 0, 20