Search the Community
Showing results for tags 'objectref'.
-
I Was wondering if anyone could look through my script and find my errors, im not great at scripting. Upon activation The script is supposed to move 3 Activators(skyhavenbloodrings) to a location then move them again to another location and stop Once activating the same button/other activator the 3 activators move to the previous location and then back to the starting location and stop. (ALSO: i couldnt decide what If statement to put at the beginning so i left it blank) here it is: Scriptname ActivatetheVault extends ObjectReference ObjectReference Property Obj1 Auto ObjectReference Property Obj2 Auto ObjectReference Property Obj3 Auto ObjectReference Property Mid1 Auto ObjectReference Property Mid2 Auto ObjectReference Property Mid3 Auto ObjectReference Property Open1 Auto ObjectReference Property Open2 Auto ObjectReference Property Open3 Auto ObjectReference Property Close1 Auto ObjectReference Property Close2 Auto ObjectReference Property Close3 Auto Event OnInit() If GoToState("Close") Else GoToState("Open") EndIf EndEvent State Open Event OnBeginState() If akActionRef == Obj1 akActionRef.TranslateToRef(Mid1, 3.0) EndIf If akActionRef == Obj2 akActionRef.TranslateToRef(Mid2, 3.0) EndIf If akActionRef == Obj3 akActionRef.TranslateToRef(Mid3, 3.0) EndIf EndEvent Event OnActivate GoToState("Close") EndEvent Event OnEndState() If akActionRef == Obj1 akActionRef.TranslateToRef(Open1, 3.0) EndIf If akActionRef == Obj2 akActionRef.TranslateToRef(Open2, 3.0) EndIf If akActionRef == Obj3 akActionRef.TranslateToRef(Open3, 3.0) EndIf EndEvent EndState State Close Event OnBeginState() If akActionRef == Obj1 akActionRef.TranslateToRef(Mid1, 3.0) EndIf If akActionRef == Obj2 akActionRef.TranslateToRef(Mid2, 3.0) EndIf If akActionRef == Obj3 akActionRef.TranslateToRef(Mid3, 3.0) EndIf EndEvent Event OnActivate GoToState("Open") EndEvent Event OnEndState() If akActionRef == Obj1 akActionRef.TranslateToRef(Close1, 3.0) EndIf If akActionRef == Obj2 akActionRef.TranslateToRef(Close2, 3.0) EndIf If akActionRef == Obj3 akActionRef.TranslateToRef(Close3, 3.0) EndIf EndEvent EndState
- 1 reply
-
- mod
- troubleshoot
- (and 6 more)
