Game API StatisticsParam

StatisticsParam
Class used to pass statistics on events.

public StatisticsType type
Contains a StatisticsType element, that resoolves what type of event happened.

public int int1
Contains integer,describing the event:

For 'CoreRemoved', 'CoreAdded', 'StructOnOff', 'StructDestroyed' type: EntityID of the entity (structure) it was removed from.

For 'PlayerDied' type: The EntityID of the player who died.

public int int2
Contains integer,describing the event:

For 'CoreRemoved', 'CoreAdded', 'StructOnOff' type EntityID of the entity that did it.

For 'PlayerDied' type: Likely how the player died. (Unknown = 0,Projectile = 1,Explosion = 2,Food = 3,Oxygen = 4,Disease = 5,Drowning = 6,Fall = 7,Suicide = 8)

For 'StructDestroyed' type: 0=wipe, 1=decay

public int int3
Contains integer,describing the event:

For 'CoreRemoved', 'CoreAdded' type: (optional) controlling entity id. Returns -1 if none.

For 'PlayerDied' type: (optional) other entity involved. Returns -1 if none. Note, that this is *any* entityid, not just player.

For 'StructOnOff' type: 0:off, 1: on

For 'StructDestroyed' type: Returns 0

public int int4
Contains integer,describing the event:

For 'CoreRemoved', 'CoreAdded' type: Returns 0

For 'PlayerDied' type: (optional) other entity CV/SV/HV involved. Returns 0 or -1

For 'StructOnOff' type: Returns 0

For 'StructDestroyed' type: Returns 0