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_StopMovementGroupCommand.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
[
BaseContainerProps
(),
SCR_BaseGroupCommandTitleField
(
"m_sCommandName"
)]
3
class
SCR_StopMovementGroupCommand
:
SCR_BaseGroupCommand
4
{
5
//------------------------------------------------------------------------------------------------
6
override
bool
Execute(
IEntity
cursorTarget,
IEntity
target,
vector
targetPosition,
int
playerID,
bool
isClient)
7
{
8
if
(isClient)
9
{
10
//place to place a logic that would be executed for other players
11
return
true
;
12
}
13
14
SCR_AIGroup
slaveGroup =
SCR_AIGroup
.Cast(target);
15
if
(!slaveGroup)
16
return
false
;
17
18
array<AIWaypoint> currentWaypoints = {};
19
slaveGroup.GetWaypoints(currentWaypoints);
20
foreach
(AIWaypoint currentwp : currentWaypoints)
21
{
22
slaveGroup.RemoveWaypoint(currentwp);
23
}
24
25
return
true
;
26
}
27
28
//------------------------------------------------------------------------------------------------
29
override
bool
CanBeShown
()
30
{
31
if
(!
CanBeShownInCurrentLifeState
())
32
return
false
;
33
34
SCR_PlayerControllerGroupComponent groupController = SCR_PlayerControllerGroupComponent.GetLocalPlayerControllerGroupComponent();
35
if
(!groupController)
36
return
false
;
37
38
if
(!
CanRoleShow
())
39
return
false
;
40
41
return
true
;
42
}
43
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
IEntity
Definition
IEntity.c:13
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_BaseGroupCommand
Definition
SCR_BaseGroupCommand.c:4
SCR_BaseGroupCommand::CanRoleShow
override bool CanRoleShow()
Definition
SCR_BaseGroupCommand.c:44
SCR_BaseGroupCommand::CanBeShownInCurrentLifeState
override bool CanBeShownInCurrentLifeState()
Definition
SCR_BaseGroupCommand.c:101
SCR_BaseGroupCommandTitleField
Definition
SCR_PlayerCommandsConfig.c:155
SCR_BaseRadialCommand::CanBeShown
bool CanBeShown()
Definition
SCR_BaseRadialCommand.c:85
SCR_StopMovementGroupCommand
Definition
SCR_StopMovementGroupCommand.c:4
vector
Definition
vector.c:13
scripts
Game
Commanding
Commands
SCR_StopMovementGroupCommand.c
Generated by
1.17.0