No categories assigned

LUA:HasMoved

LUA Functions: HasMoved()

Checks to see if the given spawn has moved


Syntax

var = HasMoved(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn that we want to check


Usage

function hailed(NPC, Spawn)
    if HasMoved(NPC) then
        Say(NPC, "I have moved")
    end
end

The NPC will respond if it has moved

Notes

Returns a bool