Difference between revisions of "LUA:BreatheUnderwater"

Line 1: Line 1:
= LUA Functions: BreathUnderwater() =
+
= LUA Functions: BreatheUnderwater() =
Lets the given spawn breath underwater
+
Lets the given spawn breathe underwater
  
 
==== Syntax ====
 
==== Syntax ====
BreathUnderwater(param1, param2)
+
BreatheUnderwater(param1, param2)
  
  
 
==== Parameters ====
 
==== Parameters ====
 
; Required - ''param1'' (Spawn), ''param2'' (bool)
 
; Required - ''param1'' (Spawn), ''param2'' (bool)
: ''param1'' is the spawn to breath underwater
+
: ''param1'' is the spawn to breathe underwater
: ''param2'' is true to allow the spawn to breath underwater
+
: ''param2'' is true to allow the spawn to breathe underwater
  
  
Line 15: Line 15:
 
<pre>
 
<pre>
 
function hailed(NPC, Spawn)
 
function hailed(NPC, Spawn)
     BreathUnderwater(Spawn, true)
+
     BreatheUnderwater(Spawn, true)
 
end
 
end
 
</pre>
 
</pre>
  
When the NPC is hailed the Player will be able to breath underwater
+
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