No categories assigned
LUA:SetVision
- Last edited 12 years ago by I need to Update My Profile
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