Background for Starfield
Member of the ObjectReference script
eventOnUnload()

Description

Wiki Description

Event called when the object's 3d has been unloaded OR the object leaves the loaded area.

Documentation Comment

Event recieved when this object is being unloaded - will be fired every time this object is unloaded


Caveats

CK Wiki - Notes

  • When this event is received any calls to the object that manipulate it may fail.

Examples

Event OnUnload()
  Debug.Trace("This object has been unloaded, animations can't be played on it anymore")
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnUnload()
    Debug.trace("Event received - OnUnload")
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.