Difference between revisions of "LUA:IsMezzed"
(Created page with "= LUA Functions: AddHate() = Adds hate to ''param2'' from ''param1'' ==== Syntax ==== AddHate(param1, param2, param3) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: IsMezzed() = |
| − | + | Checks to see if the given spawn is mezzed | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | IsMezzed(param1) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn | + | ; Required - ''param1'' (Spawn) |
| − | : ''param1'' is the spawn | + | : ''param1'' is the spawn we want to check |
| − | |||
| − | |||
==== Usage ==== | ==== Usage ==== | ||
<pre> | <pre> | ||
| − | function | + | function hailed(NPC, Spawn) |
| − | + | if IsMezzed(NPC) then | |
| − | + | Say(NPC, "I am mezzed") | |
| + | end | ||
end | end | ||
</pre> | </pre> | ||
| − | This | + | This will have the spawn say if they are mezzed when hailed |
== Notes == | == Notes == | ||
| − | + | Returns a bool, true if mezzed | |
Latest revision as of 20:03, 28 August 2013
LUA Functions: IsMezzed()
Checks to see if the given spawn is mezzed
Syntax
IsMezzed(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn we want to check
Usage
function hailed(NPC, Spawn)
if IsMezzed(NPC) then
Say(NPC, "I am mezzed")
end
end
This will have the spawn say if they are mezzed when hailed
Notes
Returns a bool, true if mezzed