Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readInstigator

readInstigator(world, entity): Instigator

The instigator of what entity does now: the entity, the player behind it, and the player’s team. A weapon takes it as it fires, as Unreal’s GetInstigator returns the pawn behind an actor. With into, it writes that record and returns it rather than a new one.

Parameter Type
world World
entity Entity

Instigator

readInstigator<Into>(world, entity, options): Into

The instigator of what entity does now: the entity, the player behind it, and the player’s team. A weapon takes it as it fires, as Unreal’s GetInstigator returns the pawn behind an actor. With into, it writes that record and returns it rather than a new one.

Type Parameter
Into extends WritableInstigator
Parameter Type
world World
entity Entity
options ReadInstigatorOptions<Into>

Into