Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DeployableInventoryItemReplacementComponent.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/DeployableItems", description: "")]
5
8typedef ScriptInvokerBase<OnCompositionDestroyedDelegate> OnCompositionDestroyed_Invoker;
9
12{
13 [Attribute()]
15
17
18 //------------------------------------------------------------------------------------------------
20 void GetItemTransform(out vector mat[4])
21 {
23 m_vItemPosition.GetTransform(mat);
24 }
25
26 //------------------------------------------------------------------------------------------------
35
36 //------------------------------------------------------------------------------------------------
37 protected void OnDamageStateChanged()
38 {
39 SCR_DamageManagerComponent damageManager = SCR_DamageManagerComponent.GetDamageManager(GetOwner());
40 IEntity instigator;
41 if (damageManager)
42 instigator = damageManager.GetInstigator().GetInstigatorEntity();
43
44 if (m_OnCompositionDestroyed && damageManager.IsDestroyed())
45 m_OnCompositionDestroyed.Invoke(instigator);
46 }
47
48 //------------------------------------------------------------------------------------------------
49 override void EOnInit(IEntity owner)
50 {
51 SCR_DamageManagerComponent damageManager = SCR_DamageManagerComponent.GetDamageManager(owner);
52 damageManager.GetOnDamageStateChanged().Insert(OnDamageStateChanged);
53 }
54
55 //------------------------------------------------------------------------------------------------
56 override void OnPostInit(IEntity owner)
57 {
58 SetEventMask(owner, EntityEvent.INIT);
59 }
60}
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
ScriptInvokerBase< OnCompositionDestroyedDelegate > OnCompositionDestroyed_Invoker
proto external int SetEventMask(notnull IEntity owner, int mask)
PointInfo - allows to define position.
Definition PointInfo.c:9
Holds Position of where the deployable item will be attached to.
proto external GenericEntity GetOwner()
Get owner entity.
SCR_FieldOfViewSettings Attribute
EntityEvent
Various entity events.
Definition EntityEvent.c:14