No categories assigned
LUA:BreatheUnderwater
- Last edited 4 years ago by Vlash Nytefall
(Redirected from LUA:BreathUnderwater)
LUA:AllFunctions - BreatheUnderwater
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
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
Example
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