You are viewing an old version of this page. Return to the latest version.
Version of 16:28, 28 August 2013 by I need to Update My Profile
Difference between revisions of "LUA:IsMezzedOrStunned"
(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: IsMezzedOrStunned() = |
| − | + | Checks to see if the given spawn is mezzed or stunned | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | IsMezzedOrStunned(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 IsMezzedOrStunned(NPC) then | |
| − | + | Say(NPC, "I am mezzed or stunned!!!") | |
| + | end | ||
end | end | ||
</pre> | </pre> | ||
| − | This is | + | This will make the spawn respond to a hail if it is mezzed or stunned |
== Notes == | == Notes == | ||
| − | + | Returns a bool, true if the spawn is mezzed or stunned | |
Latest revision as of 20:12, 28 August 2013
LUA Functions: IsMezzedOrStunned()
Checks to see if the given spawn is mezzed or stunned
Syntax
IsMezzedOrStunned(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn we want to check
Usage
function hailed(NPC, Spawn)
if IsMezzedOrStunned(NPC) then
Say(NPC, "I am mezzed or stunned!!!")
end
end
This will make the spawn respond to a hail if it is mezzed or stunned
Notes
Returns a bool, true if the spawn is mezzed or stunned