enderalse/source/scripts/defaultdisableotherobjectonactivate.psc

20 lines
455 B
Plaintext

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