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_FactionCommanderEstablishBaseRequestDenyMenuHandler.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_FactionCommanderEstablishBaseRequestDenyMenuHandler
:
SCR_FactionCommanderMainCommandMenuHandler
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
position
vector position
Definition
SCR_DestructibleTreeV2.c:30
task
from task
Definition
SCR_TaskNotificationConfigs.c:12
Faction
Definition
Faction.c:13
IEntity
Definition
IEntity.c:13
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_FactionCommanderBaseMenuHandler::GetLocalCommanderComponent
SCR_FactionCommanderPlayerComponent GetLocalCommanderComponent()
Definition
SCR_FactionCommanderBaseMenuHandler.c:19
SCR_FactionCommanderEstablishBaseRequestDenyMenuHandler
Definition
SCR_FactionCommanderEstablishBaseRequestDenyMenuHandler.c:3
SCR_FactionCommanderMainCommandMenuHandler
Definition
SCR_FactionCommanderMainCommandMenuHandler.c:3
vector
Definition
vector.c:13
scripts
Game
FactionCommander
MenuHandlers
SCR_FactionCommanderEstablishBaseRequestDenyMenuHandler.c
Generated by
1.17.0