Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FactionCommanderEstablishBaseRequestDenyMenuHandler.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override bool CanEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
6 {
7 if (!super.CanEntryBeShown(commanderFaction, playerId, position, hoveredEntity))
8 return false;
9
10 SCR_EstablishBaseRequestedTaskEntity task = SCR_EstablishBaseRequestedTaskEntity.Cast(hoveredEntity);
11
12 return task != null;
13 }
14
15 //------------------------------------------------------------------------------------------------
16 override void OnCommandIssued(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group)
17 {
18 SCR_FactionCommanderPlayerComponent comp = GetLocalCommanderComponent();
19 if (!comp)
20 return;
21
22 SCR_EstablishBaseRequestedTaskEntity task = SCR_EstablishBaseRequestedTaskEntity.Cast(hoveredEntity);
23 if (!task)
24 return;
25
26 comp.CancelTask(task.GetTaskID());
27 }
28}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
vector position
SCR_FactionCommanderPlayerComponent GetLocalCommanderComponent()