Difference between revisions of "LUA:IsAlive"
(Created page with "= LUA Functions: IsAlive() = Checks to see if the given spawn is alive ==== Syntax ==== var = IsAlive(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'...") |
(No difference)
|
Latest revision as of 20:33, 11 September 2013
LUA Functions: IsAlive()
Checks to see if the given spawn is alive
Syntax
var = IsAlive(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn we want to check
Usage
function hailed(NPC, Spawn)
if IsAlive(Spawn) then
Say(NPC, "You are alive")
end
end
The NPC will respond if the player is alive
Notes
Returns a bool