Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SCR_DestructibleBuildingEntity Interface Reference

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...

Inheritance diagram for SCR_DestructibleBuildingEntity:
[legend]

Public Member Functions

int GetBuildingId ()
 
void SetBuildingId (int id)
 
- Public Member Functions inherited from BaseBuilding
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.
 

Protected Attributes

ResourceName m_BuildingConfig
 
int m_iId
 

Detailed Description

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.

Member Function Documentation

◆ GetBuildingId()

int SCR_DestructibleBuildingEntity.GetBuildingId ( )

◆ SetBuildingId()

void SCR_DestructibleBuildingEntity.SetBuildingId ( int  id)

Member Data Documentation

◆ m_BuildingConfig

ResourceName SCR_DestructibleBuildingEntity.m_BuildingConfig
protected

◆ m_iId

int SCR_DestructibleBuildingEntity.m_iId
protected

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