Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
DestructibleEntity.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
12class 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
21 event int GetDestructionCategory();
22 event int GetDestructionWeight();
33 event float ComputeEffectiveDamage(notnull BaseDamageContext damageContext);
34 event protected void OnDamage(int previousState, int newState, float currentHealth, notnull BaseDamageContext damageContext, ScriptBitWriter frameData);
35 //Notification when the destructible state has changed. If JIP is true, the state has changed because of synchronization
36 event protected void OnStateChanged(int destructibleState, ScriptBitReader frameData, bool JIP);
37 event protected void OnBeforeDestroyed();
38 event protected bool OnContact(IEntity owner, IEntity other, Contact contact);
39}
40
EDamageType type
bool OnContact(IEntity owner, IEntity other, Contact contact)
void OnDamage(int previousState, int newState, float currentHealth, notnull BaseDamageContext damageContext, ScriptBitWriter frameData)
void OnStateChanged(int destructibleState, ScriptBitReader frameData, bool JIP)
EDamageType
Definition EDamageType.c:13