The problem is that it seems to trigger more than once and ends up reducing sneak by a lot more than 200 and it does not get restored all the way back up to its original value.
Is there a better way to do this? Thanks
ScriptName KURDSEYE extends TrapTriggerBaseimport gameimport debugobjectReference property OnlyActor auto Event onTriggerEnter(objectReference triggerRef) if (onlyActor == triggerRef) Debug.Notification("Kurds Magic eye is watching you!") Game.GetPlayer().DamageAV("Sneak", 200) endif endEvent Event onTriggerLeave(objectReference triggerRef) if (onlyActor == triggerRef) Game.GetPlayer().RestoreActorValue("Sneak", 200) endif endEvent
