Motionsensor Trigger

Post » Thu Jun 21, 2012 1:45 am

I would need a triggerbox to act like a motion sensor:
To be active while player is inside the triggerbox, getting inactive when moving outside.


Is there a prefab trigger I haven′t found yet?


I set the trigger-properties to be activated multiple times by the player and added another script with: onActivate () ... onDeactivate () ...

but that didn′t work as expected. It behaves like every other trigger: ON on first enter, OFF on second enter...


Is there a papyrus function where I can check: "If Player Is Inside TriggerBox" or something?
User avatar
lolli
 
Posts: 3485
Joined: Mon Jan 01, 2007 10:42 am

Post » Thu Jun 21, 2012 2:29 am

Ahhh. found it myself!

OnTriggerEnter & OnTriggerLeave is what I needed to change the script to...
User avatar
noa zarfati
 
Posts: 3410
Joined: Sun Apr 15, 2007 5:54 am


Return to V - Skyrim