Is there a list of valid strings out there somewhere? Or a way for me to find them in the CK?
EDIT: I was wrong, give me a second to find the correct event.
EDIT 2: Take a look at this.
EDIT 3: Or maybe this.
Thing is, it's already being activated, but not opened; and SetOpen, which the firebolt script example uses, doesn't appear to do anything whatsoever. It compiles fine, and since GetOpenState returns a 3 I presume the containers can be opened-- especially since the player can do so!-- but as far as I can see it just may as well be ";".
Here's the relevant code
Scriptname foamContainerActivated extends ReferenceAlias
;...
Event OnActivate(ObjectReference akActionRef)
ObjectReference akContainer = GetReference()
;..
int kContainer = 28
;..
Debug.Notification("Target container activated") ;fires
;..
if(akContainer.GetBaseObject().GetType()==kContainer)
Debug.Notification("Trying to open container") ;fires
akContainer.SetOpen(true) ;<--- this does not open it!
Debug.Notification(akContainer.GetOpenState()) ;returns 3-- "closed"
endif
;..
EndEvent
![]()
EDIT: I suspect that there's some mismatch going on here that makes SetOpen() failsafe on me, but I can't for the life of me figure out what.
EDIT2: I ran across someone with the same problem from back in 2012... but he got no replies. ![]()
Edited by foamyesque, 27 October 2014 - 03:05 AM.



Sign In
Create Account
Back to top







