Class: EntitySpawnAfterEventSignal
event entityBeta
Registers a script-based event handler for handling what happens when an entity spawns.
Methods
subscribe()
subscribe(
callback): (arg0) =>void
World Mutation Early Execution Beta
Parameters
callback
(arg0) => void
Function that handles the spawn event.
Returns
(arg0) => void
Remarks
Method to register an event handler for what happens when an entity spawns.
Example
logEntitySpawnEvent.ts
unsubscribe()
unsubscribe(
callback):void
World Mutation Early Execution Beta
Parameters
callback
(arg0) => void
Original function that was passed into the subscribe event, that is to be unregistered.
Returns
void
Remarks
Unregisters a method that was previously subscribed to the subscription event.
