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_FactionCommanderMainRequestMenuHandler.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_FactionCommanderMainRequestMenuHandler
:
SCR_FactionCommanderBaseMenuHandler
3
{
4
//------------------------------------------------------------------------------------------------
5
override
bool
CanEntryBeShown(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity)
6
{
7
if
(SCR_FactionCommanderPlayerComponent.IsLocalPlayerCommander())
8
return
true
;
9
10
SCR_GroupsManagerComponent
comp =
SCR_GroupsManagerComponent
.GetInstance();
11
if
(!comp)
12
return
false
;
13
14
SCR_AIGroup
group = comp.GetPlayerGroup(playerId);
15
if
(!group)
16
return
false
;
17
18
return
group.
IsPlayerLeader
(
SCR_PlayerController
.
GetLocalPlayerId
());
19
}
20
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
position
vector position
Definition
SCR_DestructibleTreeV2.c:30
SCR_GroupsManagerComponent
void SCR_GroupsManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_GroupsManagerComponent.c:1747
Faction
Definition
Faction.c:13
IEntity
Definition
IEntity.c:13
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_AIGroup::IsPlayerLeader
bool IsPlayerLeader(int playerID)
Definition
SCR_AIGroup.c:493
SCR_FactionCommanderBaseMenuHandler
Definition
SCR_FactionCommanderBaseMenuHandler.c:3
SCR_FactionCommanderMainRequestMenuHandler
Definition
SCR_FactionCommanderMainRequestMenuHandler.c:3
SCR_PlayerController
Definition
SCR_PlayerController.c:31
SCR_PlayerController::GetLocalPlayerId
static int GetLocalPlayerId()
Returns either a valid ID of local player or 0.
Definition
SCR_PlayerController.c:481
vector
Definition
vector.c:13
scripts
Game
FactionCommander
MenuHandlers
SCR_FactionCommanderMainRequestMenuHandler.c
Generated by
1.17.0