No categories assigned

LUA:BreatheUnderwater

Revision as of 18:05, 12 December 2013 by Jabantiz (talk | contribs)

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