You are viewing an old version of this page. Return to the latest version.
Version of 17:55, 12 December 2013 by I need to Update My Profile
Difference between revisions of "LUA:BreatheUnderwater"
(Created page with "= LUA Functions: IsEpic() = Checks to see if the given spawn is epic ==== Syntax ==== IsEpic(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is the s...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: BreathUnderwater() = |
| − | + | Lets the given spawn breath underwater | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | BreathUnderwater(param1, param2) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn) | + | ; Required - ''param1'' (Spawn), ''param2'' (bool) |
| − | : ''param1'' is the spawn to | + | : ''param1'' is the spawn to breath underwater |
| + | : ''param2'' is true to allow the spawn to breath underwater | ||
| Line 14: | Line 15: | ||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | + | BreathUnderwater(Spawn, true) | |
| − | |||
| − | |||
end | end | ||
</pre> | </pre> | ||
| − | When the NPC is hailed | + | When the NPC is hailed the Player will be able to breath underwater |
| + | |||
| + | == Notes == | ||
| + | To disable pass false | ||
Revision as of 18:05, 12 December 2013
LUA Functions: BreathUnderwater()
Lets the given spawn breath underwater
Syntax
BreathUnderwater(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (bool)
- param1 is the spawn to breath underwater
- param2 is true to allow the spawn to breath underwater
Usage
function hailed(NPC, Spawn)
BreathUnderwater(Spawn, true)
end
When the NPC is hailed the Player will be able to breath underwater
Notes
To disable pass false