No categories assigned

LUA:MoveToLocation

Revision as of 21:10, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: MoveToLocation() = Has the spawn move to the given location ==== Syntax ==== MoveToLocation(param1, param2, param3, param4) ==== Parameters ==== ; Required -...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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