Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
DestructibleEntity.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
12 class DestructibleEntity: StaticModelEntity
13 {
14  proto external void HandleDamage(EDamageType type, float damage, out vector hitPosDirNorm[3]);
15  proto external int GetCorrespondingState(float hp);
16  //Returns the current health of this destructible. This can be slow so use it wisely.
17  proto external float GetCurrentHealth();
18 
19  // callbacks
20 
31  event float ComputeEffectiveDamage(EDamageType damageType, float rawDamage, IEntity damageSource, notnull Instigator instigator, const GameMaterial hitMaterial, inout vector hitTransform[3], const vector impactVelocity);
32  event protected void OnDamage(int previousState, int newState, EDamageType type, float damageTaken, float currentHealth, inout vector hitTransform[3], ScriptBitWriter frameData);
33  //Notification when the destructible state has changed. If JIP is true, the state has changed because of synchronization
34  event protected void OnStateChanged(int destructibleState, ScriptBitReader frameData, bool JIP);
35  event protected void OnBeforeDestroyed();
36  event protected bool OnContact(IEntity owner, IEntity other, Contact contact);
37 }
38 
Instigator
Definition: Instigator.c:6
DestructibleEntity
Definition: DestructibleEntity.c:12
type
EDamageType type
Definition: SCR_DestructibleTreeV2.c:32
EDamageType
EDamageType
Definition: EDamageType.c:12
GameMaterial
Definition: GameMaterial.c:12