4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
393 B

scriptName defaultActivateOpenLinkedRef extends ObjectReference
{
- Opens the linked ref when the object is activated.
}
ObjectReference myLinkedRef
Auto State PreActivation
Event OnActivate(ObjectReference triggerRef)
myLinkedRef = GetLinkedRef() as ObjectReference
myLinkedRef.SetOpen(true)
gotoState("PostActivation")
EndEvent
EndState
STATE PostActivation
;Do nothing
EndState