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_LeaderRoleCallsign.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomStringTitleField
(
"Leader"
)]
2
class
SCR_LeaderRoleCallsign
:
SCR_BaseRoleCallsign
3
{
4
//------------------------------------------------------------------------------------------------
5
override
bool
IsValidRole(
IEntity
character,
int
playerID,
SCR_AIGroup
group, inout
int
roleCallsignIndex, out
bool
isUnique)
6
{
7
if
(!character)
8
return
false
;
9
10
//~ Slave group can never have the leader role
11
if
(!group || group.
IsSlave
())
12
return
false
;
13
14
if
(!super.IsValidRole(character, playerID, group, roleCallsignIndex, isUnique))
15
return
false
;
16
17
if
(group.GetLeaderEntity() == character)
18
{
19
roleCallsignIndex =
GetRoleIndex
();
20
return
true
;
21
}
22
23
return
false
;
24
}
25
26
//------------------------------------------------------------------------------------------------
27
override
int
GetRoleIndex
()
28
{
29
return
ERoleCallsign
.SQUAD_LEADER;
30
}
31
};
ERoleCallsign
ERoleCallsign
Definition
ERoleCallsign.c:5
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
Definition
SCR_HitZoneGroupNameHolder.c:27
IEntity
Definition
IEntity.c:13
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_AIGroup::IsSlave
bool IsSlave()
Definition
SCR_AIGroup.c:620
SCR_BaseRoleCallsign
Definition
SCR_BaseRoleCallsign.c:3
SCR_BaseRoleCallsign::GetRoleIndex
int GetRoleIndex()
Definition
SCR_BaseRoleCallsign.c:91
SCR_LeaderRoleCallsign
Definition
SCR_LeaderRoleCallsign.c:3
scripts
Game
Callsign
RoleCallsigns
SCR_LeaderRoleCallsign.c
Generated by
1.17.0