dietplums Posted April 29, 2023 Share Posted April 29, 2023 basically I need a load door to close after the player has activated it, at the moment the fake load door teleports the player to an xmarker but does not close itself after being used. I want to have multiple fake load doors teleport the player to one xmarker heading. the script I am using on the fake load doors at the moment: Scriptname AAAloaddoorteleporttoxmarker extends ObjectReference Const ObjectReference Property XMarker Auto Const Event OnActivate(ObjectReference akActionRef) if akActionRef == Game.GetPlayer() Utility.Wait(1) ; Wait for 1 seconds Game.GetPlayer().MoveTo(Xmarker) endifEndEvent Event OnCellDetach() Self.SetOpen(false)endEvent another script I tried using but got the same result: Scriptname AAAloadDOORtelportXMARKER2 extends ObjectReference Const ObjectReference Property XMarker Auto Const Event OnActivate(ObjectReference akActionRef) if akActionRef == Game.GetPlayer() Self.SetOpen(false) Utility.Wait(1) ; Wait for 1 seconds Game.GetPlayer().MoveTo(Xmarker) endifEndEvent thank you. Link to comment Share on other sites More sharing options...
DieFeM Posted April 30, 2023 Share Posted April 30, 2023 My guess is that it can not process SetOpen(false) until it is fully open (GetOpenState == 1), so that I'd suggest using OnOpen instead of OnActivate, because OnOpen says: "Event called when the object has finished opening." Link to comment Share on other sites More sharing options...
dietplums Posted May 6, 2023 Author Share Posted May 6, 2023 The onopen event worked thanks Link to comment Share on other sites More sharing options...
Recommended Posts