Building switches between undamaged/damaged/destroyed states based on damage to regions and destruction If a region is only partially damaged, its damage is stored in a map (m_RegionDamage) that stores index and damage If a region is destroyed, it is stored in a bitmask array (m_RegionMask) If the entire building is destroyed, only a single bool is set (m_bDestroyed) This ensures a minimal amount of data is stored per building to handle destruction.
More...
|
| 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.
|
| |
Building switches between undamaged/damaged/destroyed states based on damage to regions and destruction If a region is only partially damaged, its damage is stored in a map (m_RegionDamage) that stores index and damage If a region is destroyed, it is stored in a bitmask array (m_RegionMask) If the entire building is destroyed, only a single bool is set (m_bDestroyed) This ensures a minimal amount of data is stored per building to handle destruction.
◆ m_BuildingConfig
| ResourceName SCR_DestructibleBuildingEntity.m_BuildingConfig |
|
protected |
The documentation for this interface was generated from the following file:
- Game/Destruction/Building/SCR_DestructibleBuildingEntity.c