Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionSetCharacterStance.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Target character entity to change stance of)")]
5 ref SCR_ScenarioFrameworkGet m_EntityGetter;
6
7 [Attribute(defvalue: "0", desc: "New stance", uiwidget: UIWidgets.ComboBox, enumType: ECharacterStance)]
8 ECharacterStance m_eStance;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
16 IEntity entity;
17 if (!ValidateInputEntity(object, m_EntityGetter, entity))
18 return;
19
20 CharacterControllerComponent characterController = CharacterControllerComponent.Cast(entity.FindComponent(CharacterControllerComponent));
21 if (!characterController)
22 return;
23
24 switch (m_eStance)
25 {
26 case ECharacterStance.PRONE:
27 {
28 characterController.SetStanceChange(3);
29 break;
30 }
31
32 case ECharacterStance.CROUCH:
33 {
34 characterController.SetStanceChange(2);
35 break;
36 }
37
38 case ECharacterStance.STAND:
39 {
40 characterController.SetStanceChange(1);
41 break;
42 }
43 }
44 }
45}
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)
ECharacterStance
SCR_FieldOfViewSettings Attribute