Script API - v1.21.0
    Preparing search index...

    Registers a script-based event handler for handling what happens when an entity loads.

    Index

    Methods

    • Parameters

      • callback: (arg: EntityLoadAfterEvent) => void

        Original function that was passed into the subscribe event, that is to be unregistered.

      Returns void

      Unregisters a method that was previously subscribed to the subscription event.

      This function can't be called in read-only mode.