|
| proto external void | SetInstigator (IEntity entity) |
| | Set instigator with automatic conversion from entity to player if necessary.
|
| |
| proto external void | SetInstigatorByPlayerID (int playerID) |
| | Will set the Instigator of type InstigatorType.Player.
|
| |
| proto external void | SetInstigatorTypeToGM (int playerID=0) |
| | Sets the instigator type to GM. PlayerID will be 0 and entity will be null.
|
| |
| proto external IEntity | GetInstigatorEntity () |
| | Get the instigator entity, player ID will be automatically converted to current entity.
|
| |
| proto external int | GetInstigatorPlayerID () |
| | Gets instigator player ID if the instigator is a player. Returns 0 otherwise.
|
| |
| proto external InstigatorType | GetInstigatorType () |
| | Returns instigator type.
|
| |
◆ CreateInstigator()
| static proto ref Instigator Instigator.CreateInstigator |
( |
IEntity | instigator | ) |
|
|
static |
Proper way to create an instigator.
◆ CreateInstigatorGM()
| static proto ref Instigator Instigator.CreateInstigatorGM |
( |
int | playerID = 0 | ) |
|
|
static |
◆ GetInstigatorEntity()
| proto external IEntity Instigator.GetInstigatorEntity |
( |
| ) |
|
Get the instigator entity, player ID will be automatically converted to current entity.
Can return null if the player is dead. e.g.: Players can wait on the respawn screen, and this will return null, don't rely on IEntity, use PlayerID instead
◆ GetInstigatorPlayerID()
| proto external int Instigator.GetInstigatorPlayerID |
( |
| ) |
|
Gets instigator player ID if the instigator is a player. Returns 0 otherwise.
◆ GetInstigatorType()
◆ SetInstigator()
| proto external void Instigator.SetInstigator |
( |
IEntity | entity | ) |
|
Set instigator with automatic conversion from entity to player if necessary.
◆ SetInstigatorByPlayerID()
| proto external void Instigator.SetInstigatorByPlayerID |
( |
int | playerID | ) |
|
Will set the Instigator of type InstigatorType.Player.
◆ SetInstigatorTypeToGM()
| proto external void Instigator.SetInstigatorTypeToGM |
( |
int | playerID = 0 | ) |
|
Sets the instigator type to GM. PlayerID will be 0 and entity will be null.
The documentation for this interface was generated from the following file:
- Game/generated/Damage/Instigator.c