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_ScenarioFrameworkActionSetWoundState.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionSetWoundState
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"Entity to be killed (Optional if action is attached on Slot that spawns target entity)"
)]
5
ref
SCR_ScenarioFrameworkGet
m_Getter;
6
7
[
Attribute
(
"false"
,
UIWidgets
.Auto)]
8
bool
m_bHead;
9
10
[
Attribute
(
"false"
,
UIWidgets
.Auto)]
11
bool
m_bTorso;
12
13
[
Attribute
(
"false"
,
UIWidgets
.Auto)]
14
bool
m_bLeftArm;
15
16
[
Attribute
(
"false"
,
UIWidgets
.Auto)]
17
bool
m_bRightArm;
18
19
[
Attribute
(
"false"
,
UIWidgets
.Auto)]
20
bool
m_bLeftLeg;
21
22
[
Attribute
(
"false"
,
UIWidgets
.Auto)]
23
bool
m_bRightLeg;
24
25
//------------------------------------------------------------------------------------------------
26
override
void
OnActivate
(
IEntity
object
)
27
{
28
if
(!CanActivate())
29
return
;
30
31
IEntity
entity;
32
if
(!ValidateInputEntity(
object
, m_Getter, entity))
33
return
;
34
35
SCR_CharacterIdentityComponent identityComp = SCR_CharacterIdentityComponent.Cast(entity.
FindComponent
(SCR_CharacterIdentityComponent));
36
37
if
(!identityComp)
38
return
;
39
40
if
(m_bHead)
41
identityComp.SetWoundState(
"Head"
,
true
);
42
43
if
(m_bTorso)
44
identityComp.SetWoundState(
"Torso"
,
true
);
45
46
if
(m_bLeftArm)
47
identityComp.SetWoundState(
"Arm_L"
,
true
);
48
49
if
(m_bRightArm)
50
identityComp.SetWoundState(
"Arm_R"
,
true
);
51
52
if
(m_bLeftLeg)
53
identityComp.SetWoundState(
"Leg_L"
,
true
);
54
55
if
(m_bRightLeg)
56
identityComp.SetWoundState(
"Leg_R"
,
true
);
57
}
58
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionSetWoundState
Definition
SCR_ScenarioFrameworkActionSetWoundState.c:3
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionSetWoundState.c
Generated by
1.17.0