readInstigator
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
entity |
Entity |
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Into extends WritableInstigator |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
entity |
Entity |
options |
ReadInstigatorOptions<Into> |
Returns
Section titled “Returns”Into