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_FactionCommanderCancelConflictBaseMenuHandler.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_FactionCommanderCancelConflictBaseMenuHandler
:
SCR_FactionCommanderConflictBaseMenuHandler
3
{
4
//------------------------------------------------------------------------------------------------
5
override
bool
CanEntryBeShown(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity)
6
{
7
return
GetTask
(hoveredEntity, commanderFaction,
GetTaskPrefabClassTypename
());
8
}
9
10
//------------------------------------------------------------------------------------------------
11
override
bool
CanEntryBeSelected(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity, out
string
disabledText =
""
)
12
{
13
return
GetTask
(hoveredEntity, commanderFaction,
GetTaskPrefabClassTypename
());
14
}
15
16
//------------------------------------------------------------------------------------------------
17
override
void
OnCommandIssued(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity,
SCR_AIGroup
group)
18
{
19
SCR_CampaignFactionCommanderPlayerComponent factionCommanderPlayerComponent =
GetLocalCampaignCommanderComponent
();
20
if
(!factionCommanderPlayerComponent)
21
return
;
22
23
SCR_Task
task
=
GetTask
(hoveredEntity, commanderFaction,
GetTaskPrefabClassTypename
());
24
if
(!
task
)
25
return
;
26
27
factionCommanderPlayerComponent.CancelTask(
task
.GetTaskID());
28
}
29
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
position
vector position
Definition
SCR_DestructibleTreeV2.c:30
GetTask
SCR_ScenarioFrameworkTask GetTask()
Definition
SCR_ScenarioFrameworkLayerTask.c:131
SCR_Task
void SCR_Task(IEntitySource src, IEntity parent)
Definition
SCR_Task.c:1938
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_FactionCommanderBaseTaskMenuHandler::GetTaskPrefabClassTypename
GetTaskPrefabClassTypename()
Definition
SCR_FactionCommanderBaseTaskMenuHandler.c:36
SCR_FactionCommanderCancelConflictBaseMenuHandler
Definition
SCR_FactionCommanderCancelConflictBaseMenuHandler.c:3
SCR_FactionCommanderConflictBaseMenuHandler
Definition
SCR_FactionCommanderConflictBaseMenuHandler.c:3
SCR_FactionCommanderConflictBaseMenuHandler::GetLocalCampaignCommanderComponent
SCR_CampaignFactionCommanderPlayerComponent GetLocalCampaignCommanderComponent()
Definition
SCR_FactionCommanderConflictBaseMenuHandler.c:47
vector
Definition
vector.c:13
scripts
Game
FactionCommander
MenuHandlers
SCR_FactionCommanderCancelConflictBaseMenuHandler.c
Generated by
1.17.0