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.
 
 
 

16 lines
546 B

Scriptname defaultDisableLinkRefOnDestruction extends ObjectReference
{Disables my linked ref when I'm destroyed (Through destruction stages).}
Int Property OldStage = 3 Auto
{The destruction stage that is before the stage you want to trigger at
- Default = 3}
Int Property NewStage = 4 Auto
{The destruction stage that you want the trigger to happen at
- Default = 4}
Event OnDestructionStageChanged(int aiOldStage, int aiCurrentStage)
if (aiOldStage == OldStage) && (aiCurrentStage == NewStage)
GetLinkedRef().Disable()
endif
EndEvent