Class: PlayerSpawnAfterEventSignal
Registers an event when a player is spawned (or re-spawned after death) and fully ready within the world.
Extends
Constructors
new PlayerSpawnAfterEventSignal()
private
new PlayerSpawnAfterEventSignal():PlayerSpawnAfterEventSignal
Returns
Overrides
IPlayerSpawnAfterEventSignal
. constructor
Methods
subscribe()
subscribe(
callback
): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | PlayerSpawnAfterEvent |
Returns
void
Inherited from
IPlayerSpawnAfterEventSignal
. subscribe
Remarks
Subscribes to the event.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
void
Inherited from
IPlayerSpawnAfterEventSignal
. unsubscribe
Remarks
Unsubscribes from the event.
This function can't be called in read-only mode.
Throws
This function can throw errors.