Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkGetPlayerGroup.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: "1", params: "0 inf")]
5 int m_iPlayerId;
6
7 [Attribute(desc: "Get Slave Group in case, that interacting with subordinate AI units is needed.")]
8 bool m_bGetSlaveGroup;
9
10 //------------------------------------------------------------------------------------------------
12 {
13 SCR_PlayerControllerGroupComponent pControllerGroupComponent = SCR_PlayerControllerGroupComponent.GetPlayerControllerComponent(m_iPlayerId);
14 if (!pControllerGroupComponent)
15 {
16 PrintFormat("ScenarioFramework Action: SCR_PlayerControllerGroupComponent not found for Action %1.", this, level: LogLevel.ERROR);
17 return null;
18 }
19
20 if (!m_bGetSlaveGroup)
21 return new SCR_ScenarioFrameworkParam<IEntity>(pControllerGroupComponent.GetPlayersGroup());
22
23 SCR_AIGroup group = pControllerGroupComponent.GetPlayersGroup();
24 if (!group)
25 return null;
26
27 return new SCR_ScenarioFrameworkParam<IEntity>(group.GetSlave());
28 }
29
30}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_AIGroup GetSlave()
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)
SCR_FieldOfViewSettings Attribute