No categories assigned

LUA:SetVision

Revision as of 17:58, 12 December 2013 by Jabantiz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetVision()

Sets the vision for the given spawn

Syntax

SetVision(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int8)
param1 is the spawn whos vision we are setting
param2 is the vision we are setting it to


Usage

function hailed(NPC, Spawn)
    SetVision(Spawn, 1)
end

When the NPC is hailed the players vision will be set to 1

Notes

To reset vision to normal set it to 0