Enderal SE
https://mod.pub/enderal-se/38-enderal-se
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.
19 lines
455 B
19 lines
455 B
scriptName defaultDisableOtherObjectOnActivate extends ObjectReference
|
|
{when this is aquired by the player, disable the objectReference set in the property
|
|
This is meant for use with cell reset enabling/disabling}
|
|
|
|
objectReference property refToDisable auto
|
|
|
|
auto state waiting
|
|
Event OnActivate(objectReference akActivator)
|
|
if refToDisable.isEnabled()
|
|
goToState("Done")
|
|
refToDisable.disable()
|
|
endif
|
|
endEvent
|
|
endState
|
|
|
|
state Done
|
|
endState
|
|
|
|
|
|
|