No categories assigned

LUA:SetPosition

LUA Functions: SetPosition()

Sets the position of the given spawn


Syntax

SetPosition(param1, param2, param3, param4)


Parameters

Required - param1 (Spawn), param2 (float), param3 (float), param4 (float)
param1 is the spawn we want to change
param2 is the x coordinate
param3 is the y coordinate
param4 is the z coordinate


Usage

function hailed(NPC, Spawn)
    SetPosition(Spawn, 10, 0 -20)
end

When hailed the player will move to (10, 0, -20) within the same zone