Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_DeployableInventoryItemReplacementComponent.c
Go to the documentation of this file.
1
[
EntityEditorProps
(
category
:
"GameScripted/DeployableItems"
, description:
""
)]
2
class
SCR_DeployableInventoryItemReplacementComponentClass
:
ScriptComponentClass
3
{
4
}
5
6
void
OnCompositionDestroyedDelegate
(
IEntity
instigator);
7
typedef
func
OnCompositionDestroyedDelegate
;
8
typedef
ScriptInvokerBase<OnCompositionDestroyedDelegate>
OnCompositionDestroyed_Invoker
;
9
11
class
SCR_DeployableInventoryItemReplacementComponent
:
ScriptComponent
12
{
13
[
Attribute
()]
14
protected
ref
PointInfo
m_vItemPosition
;
15
16
protected
ref
OnCompositionDestroyed_Invoker
m_OnCompositionDestroyed
;
17
18
//------------------------------------------------------------------------------------------------
20
void
GetItemTransform
(out
vector
mat[4])
21
{
22
if
(
m_vItemPosition
)
23
m_vItemPosition
.GetTransform(mat);
24
}
25
26
//------------------------------------------------------------------------------------------------
28
OnCompositionDestroyed_Invoker
GetOnCompositionDestroyed
()
29
{
30
if
(!
m_OnCompositionDestroyed
)
31
m_OnCompositionDestroyed
=
new
OnCompositionDestroyed_Invoker
();
32
33
return
m_OnCompositionDestroyed
;
34
}
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
}
func
func
Definition
SCR_AIThreatSystem.c:6
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
OnCompositionDestroyedDelegate
func OnCompositionDestroyedDelegate
Definition
SCR_DeployableInventoryItemReplacementComponent.c:7
OnCompositionDestroyed_Invoker
ScriptInvokerBase< OnCompositionDestroyedDelegate > OnCompositionDestroyed_Invoker
Definition
SCR_DeployableInventoryItemReplacementComponent.c:8
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
GenericComponent::SetEventMask
proto external int SetEventMask(notnull IEntity owner, int mask)
IEntity
Definition
IEntity.c:13
PointInfo
PointInfo - allows to define position.
Definition
PointInfo.c:9
SCR_DeployableInventoryItemReplacementComponentClass
Definition
SCR_DeployableInventoryItemReplacementComponent.c:3
SCR_DeployableInventoryItemReplacementComponent
Holds Position of where the deployable item will be attached to.
Definition
SCR_DeployableInventoryItemReplacementComponent.c:12
SCR_DeployableInventoryItemReplacementComponent::m_OnCompositionDestroyed
ref OnCompositionDestroyed_Invoker m_OnCompositionDestroyed
Definition
SCR_DeployableInventoryItemReplacementComponent.c:16
SCR_DeployableInventoryItemReplacementComponent::OnPostInit
override void OnPostInit(IEntity owner)
Definition
SCR_DeployableInventoryItemReplacementComponent.c:56
SCR_DeployableInventoryItemReplacementComponent::GetItemTransform
void GetItemTransform(out vector mat[4])
Definition
SCR_DeployableInventoryItemReplacementComponent.c:20
SCR_DeployableInventoryItemReplacementComponent::GetOnCompositionDestroyed
OnCompositionDestroyed_Invoker GetOnCompositionDestroyed()
Definition
SCR_DeployableInventoryItemReplacementComponent.c:28
SCR_DeployableInventoryItemReplacementComponent::OnDamageStateChanged
void OnDamageStateChanged()
Definition
SCR_DeployableInventoryItemReplacementComponent.c:37
SCR_DeployableInventoryItemReplacementComponent::m_vItemPosition
ref PointInfo m_vItemPosition
Definition
SCR_DeployableInventoryItemReplacementComponent.c:14
SCR_DeployableInventoryItemReplacementComponent::EOnInit
override void EOnInit(IEntity owner)
Definition
SCR_DeployableInventoryItemReplacementComponent.c:49
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
ScriptComponent::GetOwner
proto external GenericEntity GetOwner()
Get owner entity.
vector
Definition
vector.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
EntityEvent
EntityEvent
Various entity events.
Definition
EntityEvent.c:14
scripts
Game
DeployableInventoryItems
Components
SCR_DeployableInventoryItemReplacementComponent.c
Generated by
1.17.0