Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionSetCharacterUnconscious.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Entity to play animation on")]
5 ref SCR_ScenarioFrameworkGet m_CharacterGetter;
6
7 [Attribute(defvalue: "1", desc: "Set Unconscious")]
8 bool m_bSetUnconscious;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
16 IEntity entity;
17 if (!ValidateInputEntity(object, m_CharacterGetter, entity))
18 return;
19
20 SCR_ChimeraCharacter character = SCR_ChimeraCharacter.Cast(entity);
21 if (!character)
22 return;
23
24 SCR_CharacterControllerComponent controller = SCR_CharacterControllerComponent.Cast(character.GetCharacterController());
25 if (!controller)
26 return;
27
28 controller.SetUnconscious(m_bSetUnconscious);
29 }
30}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute