Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BaseBuilding Interface Reference
Inheritance diagram for BaseBuilding:
[legend]

Public Member Functions

void OnDamage (float damage, EDamageType type, IEntity pHitEntity, inout vector outMat[3], IEntity damageSource, notnull Instigator instigator, int colliderID, float speed)
 Called when the damage has been dealt by the server.
 

Member Function Documentation

◆ OnDamage()

void BaseBuilding.OnDamage ( float  damage,
EDamageType  type,
IEntity  pHitEntity,
inout vector  outMat[3],
IEntity  damageSource,
notnull Instigator  instigator,
int  colliderID,
float  speed 
)

Called when the damage has been dealt by the server.

Parameters
damageDamage value.
typeDamage type.
pHitEntityDamaged entity.
hitDirNormHit position/direction/normal.
damageSourceProjectile entity.
damageSourceParentDamage source parent entity (soldier / vehicle).
colliderIDCollider ID if exists otherwise enf::BAD_INDEX.
speedProjectile velocity in m/s.

Implemented in SCR_FiringRangeTarget.


The documentation for this interface was generated from the following file: