Arma Reforger Script API
Loading...
Searching...
No Matches
BaseBuilding Interface Reference
Inheritance diagram for BaseBuilding:
Building SCR_BuildingRegionEntity SCR_FiringRangeTarget SCR_FragmentEntity SCR_DestructibleBuildingEntity

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: