You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:BreatheUnderwater"
m (moved LUA:BreathUnderwater to LUA:BreatheUnderwater) |
|
(No difference)
| |
Revision as of 01:03, 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