scn CWxBionicEyesUpdateTriggers int iMode begin function { iMode } if player.HasPerk CWxImplantVisionModePerk SetOnKeyUpEventHandler CWxBionicEyesOnHotkey 1 CWxVisionModeHotkey SetOnControlDownEventHandler CWxBionicEyesOnHotkey 1 27 ; Grab SetEventHandler "OnActorEquip" CWxBionicEyesOnEquip ; Clear list of processed actors to reapply shaders if CWxVisionModeLevel > 0 ListClear CWxVisionModeAList ListClear CWxVisionModeBList endif else SetOnKeyUpEventHandler CWxBionicEyesOnHotkey 0 CWxVisionModeHotkey SetOnControlDownEventHandler CWxBionicEyesOnHotkey 0 27 ; Grab RemoveEventHandler "OnActorEquip" CWxBionicEyesOnEquip endif end