No categories assigned

LUA:HasMoved

Revision as of 20:21, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: HasMoved() = Checks to see if the given spawn has moved ==== Syntax ==== var = HasMoved(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''para...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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