mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
472 B
472 B
Function: SetVision(spawn, vision)
Description: Set's the vision mode for the Player.
Parameters:
spawn(Spawn) - Spawn object representingspawn.vision(uint32) - Integer valuevision.
Returns: None.
Example:
-- From Spells/Commoner/TotenoftheEnduringSpirit.lua
function cast(Caster, Target)
if (GetLevel(Caster) >= 80)
then
AddControlEffect(Caster, 7)
BreatheUnderwater(Caster, true)
SetVision(Caster, 4)
end