Code example:
PrintChat(GetUser()); OnGainVision(function(Object) PrintChat(string.format("<font color='#00ff00'>GainedVision = %s</font>",GetObjectName(Object))); end) OnLoseVision(function(Object) PrintChat(string.format("<font color='#ff0000'>LostVision = %s</font>",GetObjectName(Object))); end)