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.
 
 
 

17 lines
457 B

scriptName defaultOpenLinkedRefTrigger extends ObjectReference
{
- Opens the linked ref (eg. a door) when the player enters the trigger. This action is only performed once.
}
Auto State PreActivation
Event onTriggerEnter(objectReference triggerRef)
if (triggerRef == (Game.GetForm(0x14) as Actor))
(GetLinkedRef() as ObjectReference).SetOpen(True)
gotoState("PostActivation")
endif
endEvent
EndState
STATE PostActivation
;Do nothing
EndState