Difference between revisions of "LUA:IsEpic"
(Created page with "= LUA Functions: Knockback() = Plays the knockback animation and can push a player back ==== Syntax ==== Knockback(param1, param2, param3, [param4], [param5], [param6]) ==== P...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: IsEpic() = |
| − | + | Checks to see if the given spawn is epic | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | IsEpic(param1) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn | + | ; Required - ''param1'' (Spawn) |
| − | : ''param1'' is the spawn | + | : ''param1'' is the spawn to check |
| − | + | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==== Usage ==== | ==== Usage ==== | ||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | + | if IsEpic(NPC) then | |
| + | Say(NPC, "I am epic!") | ||
| + | end | ||
end | end | ||
</pre> | </pre> | ||
| − | When the NPC is hailed it will | + | When the NPC is hailed it will respond if it is epic |
| − | |||
| − | |||
| − | |||
Latest revision as of 16:38, 6 December 2013
LUA Functions: IsEpic()
Checks to see if the given spawn is epic
Syntax
IsEpic(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn to check
Usage
function hailed(NPC, Spawn)
if IsEpic(NPC) then
Say(NPC, "I am epic!")
end
end
When the NPC is hailed it will respond if it is epic