Difference between revisions of "LUA:HasMoved"

(Created page with "= LUA Functions: HasMoved() = Checks to see if the given spawn has moved ==== Syntax ==== var = HasMoved(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''para...")
 
(No difference)

Latest revision as of 21:21, 11 September 2013

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