You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:BreatheUnderwater"
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: BreatheUnderwater() = |
| − | Lets the given spawn | + | Lets the given spawn breathe underwater |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | BreatheUnderwater(param1, param2) | |
==== Parameters ==== | ==== Parameters ==== | ||
; Required - ''param1'' (Spawn), ''param2'' (bool) | ; Required - ''param1'' (Spawn), ''param2'' (bool) | ||
| − | : ''param1'' is the spawn to | + | : ''param1'' is the spawn to breathe underwater |
| − | : ''param2'' is true to allow the spawn to | + | : ''param2'' is true to allow the spawn to breathe underwater |
| Line 15: | Line 15: | ||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | + | BreatheUnderwater(Spawn, true) | |
end | end | ||
</pre> | </pre> | ||
| − | When the NPC is hailed the Player will be able to | + | When the NPC is hailed the Player will be able to breathe underwater |
== Notes == | == Notes == | ||
To disable pass false | To disable pass false | ||
Revision as of 01:02, 14 December 2013
LUA Functions: BreatheUnderwater()
Lets the given spawn breathe underwater
Syntax
BreatheUnderwater(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (bool)
- param1 is the spawn to breathe underwater
- param2 is true to allow the spawn to breathe underwater
Usage
function hailed(NPC, Spawn)
BreatheUnderwater(Spawn, true)
end
When the NPC is hailed the Player will be able to breathe underwater
Notes
To disable pass false