This is done with one trigger plane (defaultBlankTrigger, Collision Layer: L_ACTORZONE) in the doorway to the room and a trigger volume encasing the vault and the room. I haven't made the trigger volume yet but this is the script on the trigger plane:
Spoiler
Scriptname MDHVaultKeepOutScript01 extends ObjectReference{Trigger plane in doorway. Pushes actors away. Resets vault}ObjectReference Property Vault AutoObjectReference Property MDHPushMarker AutoActor Property PlayerRef AutoActor Property Intruder AutoEvent OnTriggerEnter(ObjectReference akActionRef)If akActionRef == PlayerRef Vault.Reset()else akActionRef = Intruder MDHPushMarker.PushActorAway(Intruder, 10.0)endifEndEventI'm not sure what is and isn't working with my script.
Since DweRepository01 doesn't have any closing animations I need to use reset so it will close (DweRepository01 is impossible to see if you are triggering my plane). When testing I run through where I know my trigger to be a couple of times to be sure and then check on my vault, it's still wide open.
Secondly the idea is to prevent any followers/summoned creatures from being able to enter through the doorway with PushActorAway, I have no navmesh in the cell yet but I'm still able to get Lydia to walk through the door, nothing happens.
Lastly, this is the script on the activator that actually opens the vault:
Spoiler
Scriptname MDHVaultDoorOpenScript extends ObjectReference{Opens dwemer lock box}ObjectReference Property Vault AutoSound Property QSTAstrolabeButtonPressX AutoEvent OnCellAttach() ; this event runs when cell is loaded containing this scripted object PlayAnimation("Open")EndEventEvent OnActivate(ObjectReference akActionRef);Actual ButtonPlayAnimationAndWait("Trigger01", "done") ; sound and animationQSTAstrolabeButtonPressX.Play(Self);Vault Vault.PlayAnimationAndWait("trigger01", "Done")EndEventThe model for my activator is ImpButton01, and whilst it does a fantastic job of opening my vault it does not actually animate itself (no button press). I've had a look at this mesh in NifSkope and I can plainly see the button pumping up and down like no tomorrow. How can I get it to play?
*EDIT: spoiler tags
