Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkGetPlayerEntity.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
6 {
7 array<int> playerIDs = {};
8 GetGame().GetPlayerManager().GetPlayers(playerIDs);
9 IEntity entity;
10 foreach (int playerID : playerIDs)
11 {
12 entity = GetGame().GetPlayerManager().GetPlayerControlledEntity(playerID);
13 if (!entity)
14 continue;
15
16 return new SCR_ScenarioFrameworkParam<IEntity>(entity);
17 }
18
19 return null;
20 }
21}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.