Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PlayerLeaderRoleCallsign.c
Go to the documentation of this file.
1
2
[
BaseContainerProps
(),
BaseContainerCustomStringTitleField
(
"Player Leader"
)]
3
class
SCR_PlayerLeaderRoleCallsign
:
SCR_BaseRoleCallsign
4
{
5
//------------------------------------------------------------------------------------------------
6
override
bool
IsValidRole(IEntity character,
int
playerID,
SCR_AIGroup
group, inout
int
roleCallsignIndex, out
bool
isUnique)
7
{
8
//~ Slave group can never have the leader role
9
if
(!group || group.IsSlave())
10
return
false
;
11
12
if
(!super.IsValidRole(character, playerID, group, roleCallsignIndex, isUnique))
13
return
false
;
14
15
if
(group.GetLeaderID() == playerID)
16
{
17
roleCallsignIndex = GetRoleIndex();
18
return
true
;
19
}
20
21
return
false
;
22
}
23
24
//------------------------------------------------------------------------------------------------
25
override
int
GetRoleIndex()
26
{
27
return
ERoleCallsign
.PLAYER_GROUP_LEADER;
28
}
29
}
SCR_BaseRoleCallsign
Definition:
SCR_BaseRoleCallsign.c:2
SCR_PlayerLeaderRoleCallsign
Definition:
SCR_PlayerLeaderRoleCallsign.c:3
ERoleCallsign
ERoleCallsign
Definition:
ERoleCallsign.c:4
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition:
SCR_HitZoneGroupNameHolder.c:27
SCR_AIGroup
Definition:
SCR_AIGroup.c:68
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Callsign
RoleCallsigns
SCR_PlayerLeaderRoleCallsign.c
Generated by
1.8.17