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_ScenarioFrameworkAIActionSetSkill.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerAIActionTitle
()]
2
class
SCR_ScenarioFrameworkAIActionSetSkill
:
SCR_ScenarioFrameworkAIAction
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_ContainerAIActionTitle
Definition
SCR_ContainerAIActionTitle.c:2
SCR_ScenarioFrameworkAIAction
Definition
SCR_ScenarioFrameworkAIAction.c:3
SCR_ScenarioFrameworkAIActionSetSkill
Definition
SCR_ScenarioFrameworkAIActionSetSkill.c:3
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
AIActions
SCR_ScenarioFrameworkAIActionSetSkill.c
Generated by
1.17.0