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