Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionSetWoundState.c
Go to the documentation of this file.
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}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external Managed FindComponent(typename typeName)
SCR_FieldOfViewSettings Attribute