Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkAIActionSetSkill.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: EAISkill.REGULAR.ToString(), UIWidgets.ComboBox, "AI skill in combat", "", ParamEnumArray.FromEnum(EAISkill), category: "Common")]
5 EAISkill m_eAISkill;
6
7 //------------------------------------------------------------------------------------------------
8 override void OnActivate()
9 {
10 super.OnActivate();
11
12 array<AIAgent> agents = {};
13 m_AIGroup.GetAgents(agents);
14
15 foreach (AIAgent agent : agents)
16 {
17 IEntity agentEntity = agent.GetControlledEntity();
18 if (!agentEntity)
19 continue;
20
21 SCR_AICombatComponent combatComponent = SCR_AICombatComponent.Cast(agentEntity.FindComponent(SCR_AICombatComponent));
22 if (combatComponent)
23 combatComponent.SetAISkill(m_eAISkill);
24 }
25 }
26}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
proto external Managed FindComponent(typename typeName)
SCR_FieldOfViewSettings Attribute