Arma Reforger Script API
|
Public Member Functions | |
SCR_AIGroupUtilityComponent | GetGroupUtilityComponent () |
int | GetNumberOfMembersToSpawn () |
void | SetNumberOfMembersToSpawn (int number) |
bool | SpawnDelayedGroupMember (int spawnIndex) |
void | SpawnAllImmediately () |
bool | IsInitializing () |
Returns true if group is in initialization state, for instance while still spawning its members. | |
void | BeginDelayedSpawn () |
void | EndDelayedSpawn () |
bool | HasRequesterID (int id) |
void | RemoveRequester (int playerID) |
int | GetDeniedRequesters (out array< int > valueArray) |
void | AddDeniedRequester (int playerID) |
void | ClearRequesters () |
void | ClearDeniedRequester () |
int | GetRequesterIDs (out array< int > valueArray) |
void | AddRequester (int playerID) |
void | SetFlagIsFromImageSet (bool value) |
void | SetCustomGroupFlag (ResourceName flag) |
bool | GetFlagIsFromImageSet () |
ResourceName | GetGroupFlag () |
bool | IsPlayerInGroup (int playerID) |
bool | IsPlayerLeader (int playerID) |
int | GetLeaderID () |
void | SetPrivate (bool isPrivate) |
Called on the server (authority) | |
bool | IsPrivate () |
bool | GetDeleteIfNoPlayer () |
Returns true if the group is set to be deleted when all players leave. | |
void | SetCanDeleteIfNoPlayer (bool deleteEmpty) |
Sets if the group should be deleted when all players leave. | |
bool | IsFull () |
bool | IsSlave () |
int | GetPlayerAndAgentCount (bool checkMasterAndSlaves=false) |
Get the count of all players and AI in the group. | |
int | GetAgentCountIncludingMasterAndSlaves () |
int | GetTotalAgentCount () |
Get the count of all players and AI in both the group itself as well as the slave/master group(s) | |
int | GetTotalPlayerCount () |
Get the count of all players and AI in both the group itself as well as the slave/master group(s) | |
void | SetGroupFlag (int flagIndex, bool isFromImageset) |
called on server only | |
void | RPC_DoSetGroupFlag (int flagIndex, bool isFromImageset) |
void | SetCustomName (string name, int authorID) |
void | RPC_DoSetCustomName (string name, int authorID) |
void | OnNameFilteredCallback (array< string > resultText) |
void | SetCustomDescription (string desc, int authorID) |
called on server only | |
void | SetMaxGroupMembers (int value) |
void | RPC_DoSetMaxGroupMembers (int value) |
void | RPC_DoSetCustomDescription (string desc, int authorID) |
void | OnDescFilteredCallback (array< string > resultText) |
string | GetCustomDescription () |
string | GetCustomName () |
int | GetDescriptionAuthorID () |
int | GetNameAuthorID () |
string | GetCustomNameWithOriginal () |
int | GetGroupID () |
void | SetGroupID (int id) |
int | GetMaxMembers () |
void | SetMaxMembers (int maxMembers) |
called on server only | |
void | RPC_DoSetMaxMembers (int maxMembers) |
array< int > | GetPlayerIDs () |
int | GetPlayerCount (bool checkMasterAndSlaves=false) |
Get the count of all players in the group. | |
ScriptInvoker | GetOnMemberStateChange () |
bool | BelongedToGroup (int playerID) |
void | AddAgentFromControlledEntity (notnull IEntity controlledEntity) |
void | RemoveAgentFromControlledEntity (notnull IEntity controlledEntity) |
void | NotificateGroupAIChange (IEntity controlledEntity, ENotification notificationType) |
void | OnPlayerDisconnected (int playerID) |
Should be only called on the server. | |
void | OnPlayerConnected (int playerID) |
Should be only called on the server. | |
void | RPC_DoOnGroupMemberStateChange () |
void | OnGroupMemberStateChange () |
Should only be called on the server (authority) | |
void | OnMemberDeath (notnull SCR_CharacterControllerComponent memberController, IEntity killerEntity, Instigator killer) |
void | ListenToMemberDeath (notnull IEntity groupMember) |
void | AddOnGadgetsLoadedListener (int playerID, notnull IEntity controlledEntity) |
void | OnControllableEntitySpawned (IEntity controlledEntity, notnull SCR_GadgetManagerComponent gadgetManager) |
void | QueueAddAgent (int playerID) |
void | RPC_DoAddPlayer (int playerID) |
void | CheckForLeader (int playerID, bool noLeaderAllowed) |
checks for a leader, if there is none, it will either use provided player as leader, or appoints next player in group as leader Called on the server (authority) | |
void | SetGroupLeader (int playerID) |
Called on the server (authority) | |
void | RPC_SetLeaderID (int playerID) |
void | RPC_SetPrivate (bool isPrivate) |
void | AddPlayer (int playerID) |
Called on the server (authority) | |
void | RPC_DoAddRequester (int playerID) |
void | RPC_DoRemoveRequester (int playerID) |
void | RPC_DoClearDeniedRequester () |
void | RPC_DoClearRequesterIDs () |
void | RPC_DoAddDeniedRequester (int playerID) |
void | RPC_DoRemovePlayer (int playerID) |
void | RemovePlayerAgent (int playerID) |
void | RemovePlayer (int playerID) |
Called on the server (authority) | |
void | GetCallsigns (out string company, out string platoon, out string squad, out string character, out string format) |
void | SetRadioFrequency (int frequency) |
void | RPC_DoSetFrequency (int frequency) |
int | GetRadioFrequency () |
bool | IsPlayable () |
void | SetWaypointParams (out AIWaypoint wp, SCR_WaypointPrefabLocation prefabParams) |
void | AddWaypointsDynamic (out array< IEntity > entityInstanceList, array< ref SCR_WaypointPrefabLocation > prefabs) |
void | AddWaypointsStatic (array< string > aWaypointNames) |
void | AddVehiclesStatic (array< string > aVehicleNames) |
void | RemoveStaticWaypointRefs (array< string > aWaypointNames) |
void | ClearRefs (out array< IEntity > entityList) |
bool | AddAIEntityToGroup (IEntity entity) |
bool | RemoveAIEntityFromGroup (IEntity entity) |
void | AddWaypointToGroup (AIWaypoint waypoint) |
void | RemoveWaypointFromGroup (AIWaypoint waypoint) |
void | AddUsableVehicle (IEntity vehicle) |
void | RemoveUsableVehicle (IEntity vehicle) |
bool | IsUsableVehicle (IEntity vehicle) |
int | GetUsableVehicles (out array< IEntity > usableVehicles) |
int | GetUsableVehiclesCount () |
void | GetAllocatedCompartments (out array< BaseCompartmentSlot > allocatedCompartments) |
void | GetAllocatedSmartActions (out array< AISmartActionComponent > allocatedComponents) |
void | AllocateSmartActions (array< AISmartActionComponent > components) |
void | AllocateCompartment (BaseCompartmentSlot compartment) |
void | ReleaseCompartment (BaseCompartmentSlot compartment) |
void | ReleaseCompartments () |
void | ReleaseSmartAction (AISmartActionComponent component) |
void | ReleaseSmartActions () |
bool | InitFactionKey (string factionKey) |
Set name of group's faction (only if it's not set yet) | |
bool | SetFaction (Faction faction) |
If Faction is set change faction to given faction Server Only. | |
string | GetFactionName () |
Get name of group's faction. | |
Faction | GetFaction () |
Get group's faction from FactionManager. | |
int | GetFactionIndex () |
Get group's faction index from FactionManager. | |
ScriptInvoker | GetOnInit () |
Get event called when all initial group members were spawned. | |
ScriptInvoker_AIGroupOnEmpty | GetOnEmpty () |
Get event called when the group becomes empty. | |
ScriptInvoker | GetOnAgentAdded () |
Get event called every time an agent is called to a group. | |
ScriptInvoker | GetOnAgentRemoved () |
Get event called every time an agent is removed from a group. | |
ScriptInvoker | GetOnLeaderChanged () |
Get event called every time a group leader changes. | |
ScriptInvoker | GetOnCurrentWaypointChanged () |
Get event called when current waypoint of the group changes. | |
ScriptInvoker | GetOnWaypointCompleted () |
Get event called when current waypoint of the group is completed. | |
ScriptInvoker | GetOnWaypointAdded () |
Get event called when a new waypoint is added to the group. | |
ScriptInvoker | GetOnWaypointRemoved () |
Get event called when a waypoint is removed from the group. | |
ScriptInvoker | GetOnFactionChanged () |
Get event called when faction of group is changed. | |
ScriptInvokerBase< ScriptInvokerAIGroup > | GetOnAllDelayedEntitySpawned () |
override void | OnEmpty () |
override void | OnAgentAdded (AIAgent child) |
override void | OnAgentRemoved (AIAgent child) |
override void | OnLeaderChanged (AIAgent currentLeader, AIAgent prevLeader) |
override void | OnCurrentWaypointChanged (AIWaypoint currentWP, AIWaypoint prevWP) |
override void | OnWaypointCompleted (AIWaypoint wp) |
override void | OnWaypointAdded (AIWaypoint wp) |
override void | OnWaypointRemoved (AIWaypoint wp, bool isCurrentWaypoint) |
override bool | _WB_OnKeyChanged (BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent) |
override void | EOnInit (IEntity owner) |
bool | GetSpawnImmediately () |
void | SetSpawnImmediately (bool spawnImmediately) |
void | SetMaxUnitsToSpawn (int cnt) |
void | SetMemberSpawnDelay (int memberSpawnDelay) |
Set delay (ms) between spawning of individual group members. | |
void | SpawnUnits () |
SCR_AIGroup | GetSlave () |
Get slave subgroup that is used for AI characters when invited by players into this playable SCR_AIGroup. | |
void | SetSlave (SCR_AIGroup group) |
Set slave subgroup that is used for AI characters when invited by players into this playable SCR_AIGroup. | |
SCR_AIGroup | GetMaster () |
Get master group that gives orders to this slave subgroup. | |
void | SetMaster (SCR_AIGroup group) |
Set master group that gives orders to this slave subgroup. | |
array< SCR_ChimeraCharacter > | GetAIMembers () |
bool | IsAIControlledCharacterMember (SCR_ChimeraCharacter character) |
override bool | RplSave (ScriptBitWriter writer) |
override bool | RplLoad (ScriptBitReader reader) |
void | LeaderLifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState) |
void | SetNewConsciousLeader () |
void | IncreaseDeployedRadioCount () |
void | DecreaseDeployedRadioCount () |
int | GetDeployedRadioCount () |
void | SetDeleteWhenEmpty (bool deleteWhenEmpty) |
void | SCR_AIGroup (IEntitySource src, IEntity parent) |
void | ~SCR_AIGroup () |
Static Public Member Functions | |
static ScriptInvoker | GetOnFlagSelected () |
static ScriptInvoker | GetOnJoinPrivateGroupRequest () |
static ScriptInvoker | GetOnJoinPrivateGroupConfirm () |
static ScriptInvoker | GetOnJoinPrivateGroupCancel () |
static ScriptInvoker | GetOnPlayerAdded () |
static ScriptInvoker | GetOnPlayerRemoved () |
static ScriptInvoker | GetOnPlayerLeaderChanged () |
static ScriptInvoker | GetOnPrivateGroupChanged () |
static ScriptInvoker | GetOnCustomNameChanged () |
static ScriptInvoker | GetOnFrequencyChanged () |
static ScriptInvoker | GetOnCustomDescriptionChanged () |
static void | IgnoreSnapToTerrain (bool ignore) |
Ignore snapping to terrain in the next spawned group. | |
static void | IgnoreSpawning (bool ignore) |
Ignore spawning group members in the next spawned group. | |
Public Attributes | |
string | m_faction |
ref array< ResourceName > | m_aUnitPrefabSlots |
ref array< string > | m_aStaticWaypoints |
ref array< ref SCR_WaypointPrefabLocation > | m_aSpawnedWaypoints |
ref array< string > | m_aStaticVehicles |
Protected Member Functions | |
override void | EOnFrame (IEntity owner, float timeSlice) |
void | CreateUnitEntities (bool editMode, array< ResourceName > entityResourceNames) |
bool | SpawnGroupMember (bool snapToTerrain, int index, ResourceName res, bool editMode, bool isLast) |
void | DestroyEntities (out array< IEntity > entityList) |
void | SetFactionDelayed (int factionIndex) |
void | BroadCastSetFaction (int factionIndex) |
void | InvokeSubagentsOnWaypointChanged (AIWaypoint newWaypoint) |
Invokes OnGroupWaypointChanged on all soldiers newWaypoint can be null. | |
Protected Attributes | |
int | m_fMemberSpawnDelay |
bool | m_bDeleteWhenEmpty |
ref array< IEntity > | m_aSceneGroupUnitInstances |
ref array< IEntity > | m_aSceneWaypointInstances |
ref array< IEntity > | m_aUsableVehicles |
ref array< BaseCompartmentSlot > | m_aAllocatedCompartments = {} |
ref array< AISmartActionComponent > | m_aAllocatedComponents = {} |
int | m_iMaxUnitsToSpawn = int.MAX |
ref ScriptInvoker | Event_OnInit = new ScriptInvoker |
ref ScriptInvoker_AIGroupOnEmpty | Event_OnEmpty = new ScriptInvoker_AIGroupOnEmpty() |
ref ScriptInvoker | Event_OnAgentAdded = new ScriptInvoker |
ref ScriptInvoker | Event_OnAgentRemoved = new ScriptInvoker |
ref ScriptInvoker | Event_OnLeaderChanged = new ScriptInvoker |
ref ScriptInvoker | Event_OnCurrentWaypointChanged = new ScriptInvoker |
ref ScriptInvoker | Event_OnWaypointCompleted = new ScriptInvoker |
ref ScriptInvoker | Event_OnWaypointAdded = new ScriptInvoker |
ref ScriptInvoker | Event_OnWaypointRemoved = new ScriptInvoker |
ref ScriptInvoker | Event_OnFactionChanged = new ScriptInvoker |
ref ScriptInvoker | m_OnGroupMemberStateChange = new ScriptInvoker() |
int | m_iNumOfMembersToSpawn |
ref array< int > | m_aAgentIDQueue = {} |
int | m_iGroupRadioFrequency |
int | m_iMaxMembers |
bool | m_bPlayable |
bool | m_bPrivate |
bool | m_bDeleteIfNoPlayer |
int | m_iGroupID = -1 |
int | m_iLeaderID = -1 |
ref SCR_AIGroupUIInfo | m_UiInfo |
int | m_iDescriptionAuthorID = 0 |
int | m_iNameAuthorID = 0 |
string | m_sCustomName = "" |
string | m_sCustomDescription = "" |
ref array< int > | m_aPlayerIDs = {} |
ref array< int > | m_aDisconnectedPlayerIDs |
ref SCR_ScriptProfanityFilterRequestCallback | m_ProfanityCallbackName |
ref SCR_ScriptProfanityFilterRequestCallback | m_ProfanityCallbackDesc |
ref array< int > | m_aRequesterIDs = {} |
ref array< int > | m_aDeniedRequesters = {} |
int | m_iDeployedRadioCount = 0 |
SCR_AIGroup | m_SlaveGroup |
SCR_AIGroup | m_MasterGroup |
ref array< SCR_ChimeraCharacter > | m_aAIMembers = {} |
SCR_AIGroupUtilityComponent | m_GroupUtilityComponent |
ref array< ref SCR_AIGroup_DelayedSpawn > | m_delayedSpawnList = {} |
ref ScriptInvokerBase< ScriptInvokerAIGroup > | Event_OnAllDelayedEntitySpawned |
Static Protected Attributes | |
static bool | s_bIgnoreSnapToTerrain |
static bool | s_bIgnoreSpawning |
static ref ScriptInvoker | s_OnPlayerAdded = new ScriptInvoker() |
static ref ScriptInvoker | s_OnPlayerRemoved = new ScriptInvoker() |
static ref ScriptInvoker< int, int > | s_OnPlayerLeaderChanged = new ScriptInvoker() |
static ref ScriptInvoker | s_OnPrivateGroupChanged = new ScriptInvoker() |
static ref ScriptInvoker< SCR_AIGroup > | s_OnCustomNameChanged = new ScriptInvoker() |
static ref ScriptInvoker | s_OnFrequencyChanged = new ScriptInvoker() |
static ref ScriptInvoker | s_OnMaxMembersChanged = new ScriptInvoker() |
static ref ScriptInvoker | s_OnCustomDescChanged = new ScriptInvoker() |
static ref ScriptInvoker | s_OnFlagSelected = new ScriptInvoker() |
static ref ScriptInvoker | s_OnJoinPrivateGroupRequest = new ScriptInvoker() |
static ref ScriptInvoker | s_OnJoinPrivateGroupConfirm = new ScriptInvoker() |
static ref ScriptInvoker | s_OnJoinPrivateGroupCancel = new ScriptInvoker() |
void SCR_AIGroup.SCR_AIGroup | ( | IEntitySource | src, |
IEntity | parent | ||
) |
void SCR_AIGroup.~SCR_AIGroup | ( | ) |
override bool SCR_AIGroup._WB_OnKeyChanged | ( | BaseContainer | src, |
string | key, | ||
BaseContainerList | ownerContainers, | ||
IEntity | parent | ||
) |
void SCR_AIGroup.AddAgentFromControlledEntity | ( | notnull IEntity | controlledEntity | ) |
bool SCR_AIGroup.AddAIEntityToGroup | ( | IEntity | entity | ) |
void SCR_AIGroup.AddDeniedRequester | ( | int | playerID | ) |
void SCR_AIGroup.AddOnGadgetsLoadedListener | ( | int | playerID, |
notnull IEntity | controlledEntity | ||
) |
void SCR_AIGroup.AddPlayer | ( | int | playerID | ) |
Called on the server (authority)
void SCR_AIGroup.AddRequester | ( | int | playerID | ) |
void SCR_AIGroup.AddUsableVehicle | ( | IEntity | vehicle | ) |
void SCR_AIGroup.AddVehiclesStatic | ( | array< string > | aVehicleNames | ) |
void SCR_AIGroup.AddWaypointsDynamic | ( | out array< IEntity > | entityInstanceList, |
array< ref SCR_WaypointPrefabLocation > | prefabs | ||
) |
void SCR_AIGroup.AddWaypointsStatic | ( | array< string > | aWaypointNames | ) |
void SCR_AIGroup.AddWaypointToGroup | ( | AIWaypoint | waypoint | ) |
void SCR_AIGroup.AllocateCompartment | ( | BaseCompartmentSlot | compartment | ) |
void SCR_AIGroup.AllocateSmartActions | ( | array< AISmartActionComponent > | components | ) |
void SCR_AIGroup.BeginDelayedSpawn | ( | ) |
bool SCR_AIGroup.BelongedToGroup | ( | int | playerID | ) |
|
protected |
void SCR_AIGroup.CheckForLeader | ( | int | playerID, |
bool | noLeaderAllowed | ||
) |
checks for a leader, if there is none, it will either use provided player as leader, or appoints next player in group as leader Called on the server (authority)
void SCR_AIGroup.ClearDeniedRequester | ( | ) |
void SCR_AIGroup.ClearRefs | ( | out array< IEntity > | entityList | ) |
void SCR_AIGroup.ClearRequesters | ( | ) |
|
protected |
void SCR_AIGroup.DecreaseDeployedRadioCount | ( | ) |
|
protected |
void SCR_AIGroup.EndDelayedSpawn | ( | ) |
|
protected |
override void SCR_AIGroup.EOnInit | ( | IEntity | owner | ) |
int SCR_AIGroup.GetAgentCountIncludingMasterAndSlaves | ( | ) |
array< SCR_ChimeraCharacter > SCR_AIGroup.GetAIMembers | ( | ) |
void SCR_AIGroup.GetAllocatedCompartments | ( | out array< BaseCompartmentSlot > | allocatedCompartments | ) |
void SCR_AIGroup.GetAllocatedSmartActions | ( | out array< AISmartActionComponent > | allocatedComponents | ) |
void SCR_AIGroup.GetCallsigns | ( | out string | company, |
out string | platoon, | ||
out string | squad, | ||
out string | character, | ||
out string | format | ||
) |
string SCR_AIGroup.GetCustomDescription | ( | ) |
string SCR_AIGroup.GetCustomName | ( | ) |
string SCR_AIGroup.GetCustomNameWithOriginal | ( | ) |
bool SCR_AIGroup.GetDeleteIfNoPlayer | ( | ) |
Returns true if the group is set to be deleted when all players leave.
int SCR_AIGroup.GetDeniedRequesters | ( | out array< int > | valueArray | ) |
int SCR_AIGroup.GetDeployedRadioCount | ( | ) |
int SCR_AIGroup.GetDescriptionAuthorID | ( | ) |
Faction SCR_AIGroup.GetFaction | ( | ) |
Get group's faction from FactionManager.
int SCR_AIGroup.GetFactionIndex | ( | ) |
Get group's faction index from FactionManager.
string SCR_AIGroup.GetFactionName | ( | ) |
Get name of group's faction.
bool SCR_AIGroup.GetFlagIsFromImageSet | ( | ) |
ResourceName SCR_AIGroup.GetGroupFlag | ( | ) |
int SCR_AIGroup.GetGroupID | ( | ) |
SCR_AIGroupUtilityComponent SCR_AIGroup.GetGroupUtilityComponent | ( | ) |
int SCR_AIGroup.GetLeaderID | ( | ) |
SCR_AIGroup SCR_AIGroup.GetMaster | ( | ) |
Get master group that gives orders to this slave subgroup.
int SCR_AIGroup.GetMaxMembers | ( | ) |
int SCR_AIGroup.GetNameAuthorID | ( | ) |
int SCR_AIGroup.GetNumberOfMembersToSpawn | ( | ) |
ScriptInvoker SCR_AIGroup.GetOnAgentAdded | ( | ) |
Get event called every time an agent is called to a group.
Called only on server. Invoker params are: AIGroup group, AIAgent agent
ScriptInvoker SCR_AIGroup.GetOnAgentRemoved | ( | ) |
Get event called every time an agent is removed from a group.
Called only on server. Invoker params are: AIGroup group, AIAgent agent
ScriptInvokerBase< ScriptInvokerAIGroup > SCR_AIGroup.GetOnAllDelayedEntitySpawned | ( | ) |
ScriptInvoker SCR_AIGroup.GetOnCurrentWaypointChanged | ( | ) |
Get event called when current waypoint of the group changes.
Called only on server. Invoker params are: AIWaypoint currentWP, AIWaypoint prevWP
|
static |
|
static |
ScriptInvoker_AIGroupOnEmpty SCR_AIGroup.GetOnEmpty | ( | ) |
Get event called when the group becomes empty.
Called only on server. No invoker params are passed.
ScriptInvoker SCR_AIGroup.GetOnFactionChanged | ( | ) |
Get event called when faction of group is changed.
|
static |
|
static |
ScriptInvoker SCR_AIGroup.GetOnInit | ( | ) |
Get event called when all initial group members were spawned.
Called only on server. Param is this aiGroup
|
static |
|
static |
|
static |
ScriptInvoker SCR_AIGroup.GetOnLeaderChanged | ( | ) |
Get event called every time a group leader changes.
Called only on server. Invoker params are: AIGroup group, AIAgent currentLeader, AIAgent prevLeader
ScriptInvoker SCR_AIGroup.GetOnMemberStateChange | ( | ) |
|
static |
|
static |
|
static |
|
static |
ScriptInvoker SCR_AIGroup.GetOnWaypointAdded | ( | ) |
Get event called when a new waypoint is added to the group.
Called only on server. Invoker params are: AIWaypoint wp
ScriptInvoker SCR_AIGroup.GetOnWaypointCompleted | ( | ) |
Get event called when current waypoint of the group is completed.
Called only on server. Invoker params are: AIWaypoint wp
ScriptInvoker SCR_AIGroup.GetOnWaypointRemoved | ( | ) |
Get event called when a waypoint is removed from the group.
Called only on server. Invoker params are: AIWaypoint wp
int SCR_AIGroup.GetPlayerAndAgentCount | ( | bool | checkMasterAndSlaves = false | ) |
Get the count of all players and AI in the group.
checkMasterAndSlaves | If true then it will also check any attached Master and/or slave group |
int SCR_AIGroup.GetPlayerCount | ( | bool | checkMasterAndSlaves = false | ) |
Get the count of all players in the group.
checkMasterAndSlaves | If true then it will also check any attached Master and/or slave groups |
array< int > SCR_AIGroup.GetPlayerIDs | ( | ) |
int SCR_AIGroup.GetRadioFrequency | ( | ) |
int SCR_AIGroup.GetRequesterIDs | ( | out array< int > | valueArray | ) |
SCR_AIGroup SCR_AIGroup.GetSlave | ( | ) |
Get slave subgroup that is used for AI characters when invited by players into this playable SCR_AIGroup.
bool SCR_AIGroup.GetSpawnImmediately | ( | ) |
int SCR_AIGroup.GetTotalAgentCount | ( | ) |
Get the count of all players and AI in both the group itself as well as the slave/master group(s)
int SCR_AIGroup.GetTotalPlayerCount | ( | ) |
Get the count of all players and AI in both the group itself as well as the slave/master group(s)
int SCR_AIGroup.GetUsableVehicles | ( | out array< IEntity > | usableVehicles | ) |
int SCR_AIGroup.GetUsableVehiclesCount | ( | ) |
bool SCR_AIGroup.HasRequesterID | ( | int | id | ) |
|
static |
Ignore snapping to terrain in the next spawned group.
Used when some other system handles it and group's functionality would interfere with it. Has to be set before spawning a group, is reset to false afterwards.
ignore | True to ignore terrain snap |
|
static |
Ignore spawning group members in the next spawned group.
Used when some other system handles it and group's functionality would interfere with it. Has to be set before spawning a group, is reset to false afterwards.
ignore | True to ignore spawning |
void SCR_AIGroup.IncreaseDeployedRadioCount | ( | ) |
bool SCR_AIGroup.InitFactionKey | ( | string | factionKey | ) |
Set name of group's faction (only if it's not set yet)
factionKey,Faction | key to set faction to |
|
protected |
Invokes OnGroupWaypointChanged on all soldiers newWaypoint can be null.
bool SCR_AIGroup.IsAIControlledCharacterMember | ( | SCR_ChimeraCharacter | character | ) |
bool SCR_AIGroup.IsFull | ( | ) |
bool SCR_AIGroup.IsInitializing | ( | ) |
Returns true if group is in initialization state, for instance while still spawning its members.
bool SCR_AIGroup.IsPlayable | ( | ) |
bool SCR_AIGroup.IsPlayerInGroup | ( | int | playerID | ) |
bool SCR_AIGroup.IsPlayerLeader | ( | int | playerID | ) |
bool SCR_AIGroup.IsPrivate | ( | ) |
bool SCR_AIGroup.IsSlave | ( | ) |
bool SCR_AIGroup.IsUsableVehicle | ( | IEntity | vehicle | ) |
void SCR_AIGroup.LeaderLifeStateChanged | ( | ECharacterLifeState | previousLifeState, |
ECharacterLifeState | newLifeState | ||
) |
void SCR_AIGroup.ListenToMemberDeath | ( | notnull IEntity | groupMember | ) |
void SCR_AIGroup.NotificateGroupAIChange | ( | IEntity | controlledEntity, |
ENotification | notificationType | ||
) |
override void SCR_AIGroup.OnAgentAdded | ( | AIAgent | child | ) |
override void SCR_AIGroup.OnAgentRemoved | ( | AIAgent | child | ) |
void SCR_AIGroup.OnControllableEntitySpawned | ( | IEntity | controlledEntity, |
notnull SCR_GadgetManagerComponent | gadgetManager | ||
) |
override void SCR_AIGroup.OnCurrentWaypointChanged | ( | AIWaypoint | currentWP, |
AIWaypoint | prevWP | ||
) |
void SCR_AIGroup.OnDescFilteredCallback | ( | array< string > | resultText | ) |
override void SCR_AIGroup.OnEmpty | ( | ) |
void SCR_AIGroup.OnGroupMemberStateChange | ( | ) |
Should only be called on the server (authority)
override void SCR_AIGroup.OnLeaderChanged | ( | AIAgent | currentLeader, |
AIAgent | prevLeader | ||
) |
void SCR_AIGroup.OnMemberDeath | ( | notnull SCR_CharacterControllerComponent | memberController, |
IEntity | killerEntity, | ||
Instigator | killer | ||
) |
void SCR_AIGroup.OnNameFilteredCallback | ( | array< string > | resultText | ) |
void SCR_AIGroup.OnPlayerConnected | ( | int | playerID | ) |
Should be only called on the server.
void SCR_AIGroup.OnPlayerDisconnected | ( | int | playerID | ) |
Should be only called on the server.
override void SCR_AIGroup.OnWaypointAdded | ( | AIWaypoint | wp | ) |
override void SCR_AIGroup.OnWaypointCompleted | ( | AIWaypoint | wp | ) |
override void SCR_AIGroup.OnWaypointRemoved | ( | AIWaypoint | wp, |
bool | isCurrentWaypoint | ||
) |
void SCR_AIGroup.QueueAddAgent | ( | int | playerID | ) |
void SCR_AIGroup.ReleaseCompartment | ( | BaseCompartmentSlot | compartment | ) |
void SCR_AIGroup.ReleaseCompartments | ( | ) |
void SCR_AIGroup.ReleaseSmartAction | ( | AISmartActionComponent | component | ) |
void SCR_AIGroup.ReleaseSmartActions | ( | ) |
void SCR_AIGroup.RemoveAgentFromControlledEntity | ( | notnull IEntity | controlledEntity | ) |
bool SCR_AIGroup.RemoveAIEntityFromGroup | ( | IEntity | entity | ) |
void SCR_AIGroup.RemovePlayer | ( | int | playerID | ) |
Called on the server (authority)
void SCR_AIGroup.RemovePlayerAgent | ( | int | playerID | ) |
void SCR_AIGroup.RemoveRequester | ( | int | playerID | ) |
void SCR_AIGroup.RemoveStaticWaypointRefs | ( | array< string > | aWaypointNames | ) |
void SCR_AIGroup.RemoveUsableVehicle | ( | IEntity | vehicle | ) |
void SCR_AIGroup.RemoveWaypointFromGroup | ( | AIWaypoint | waypoint | ) |
void SCR_AIGroup.RPC_DoAddDeniedRequester | ( | int | playerID | ) |
void SCR_AIGroup.RPC_DoAddPlayer | ( | int | playerID | ) |
void SCR_AIGroup.RPC_DoAddRequester | ( | int | playerID | ) |
void SCR_AIGroup.RPC_DoClearDeniedRequester | ( | ) |
void SCR_AIGroup.RPC_DoClearRequesterIDs | ( | ) |
void SCR_AIGroup.RPC_DoOnGroupMemberStateChange | ( | ) |
void SCR_AIGroup.RPC_DoRemovePlayer | ( | int | playerID | ) |
void SCR_AIGroup.RPC_DoRemoveRequester | ( | int | playerID | ) |
void SCR_AIGroup.RPC_DoSetCustomDescription | ( | string | desc, |
int | authorID | ||
) |
void SCR_AIGroup.RPC_DoSetCustomName | ( | string | name, |
int | authorID | ||
) |
void SCR_AIGroup.RPC_DoSetFrequency | ( | int | frequency | ) |
void SCR_AIGroup.RPC_DoSetGroupFlag | ( | int | flagIndex, |
bool | isFromImageset | ||
) |
void SCR_AIGroup.RPC_DoSetMaxGroupMembers | ( | int | value | ) |
void SCR_AIGroup.RPC_DoSetMaxMembers | ( | int | maxMembers | ) |
void SCR_AIGroup.RPC_SetLeaderID | ( | int | playerID | ) |
void SCR_AIGroup.RPC_SetPrivate | ( | bool | isPrivate | ) |
override bool SCR_AIGroup.RplLoad | ( | ScriptBitReader | reader | ) |
override bool SCR_AIGroup.RplSave | ( | ScriptBitWriter | writer | ) |
void SCR_AIGroup.SetCanDeleteIfNoPlayer | ( | bool | deleteEmpty | ) |
Sets if the group should be deleted when all players leave.
void SCR_AIGroup.SetCustomDescription | ( | string | desc, |
int | authorID | ||
) |
called on server only
void SCR_AIGroup.SetCustomGroupFlag | ( | ResourceName | flag | ) |
void SCR_AIGroup.SetCustomName | ( | string | name, |
int | authorID | ||
) |
void SCR_AIGroup.SetDeleteWhenEmpty | ( | bool | deleteWhenEmpty | ) |
bool SCR_AIGroup.SetFaction | ( | Faction | faction | ) |
|
protected |
void SCR_AIGroup.SetFlagIsFromImageSet | ( | bool | value | ) |
void SCR_AIGroup.SetGroupFlag | ( | int | flagIndex, |
bool | isFromImageset | ||
) |
called on server only
void SCR_AIGroup.SetGroupID | ( | int | id | ) |
void SCR_AIGroup.SetGroupLeader | ( | int | playerID | ) |
Called on the server (authority)
void SCR_AIGroup.SetMaster | ( | SCR_AIGroup | group | ) |
Set master group that gives orders to this slave subgroup.
void SCR_AIGroup.SetMaxGroupMembers | ( | int | value | ) |
void SCR_AIGroup.SetMaxMembers | ( | int | maxMembers | ) |
called on server only
void SCR_AIGroup.SetMaxUnitsToSpawn | ( | int | cnt | ) |
void SCR_AIGroup.SetMemberSpawnDelay | ( | int | memberSpawnDelay | ) |
Set delay (ms) between spawning of individual group members.
Can be used only before they are spawned.
memberSpawnDelay | Delay |
void SCR_AIGroup.SetNewConsciousLeader | ( | ) |
void SCR_AIGroup.SetNumberOfMembersToSpawn | ( | int | number | ) |
void SCR_AIGroup.SetPrivate | ( | bool | isPrivate | ) |
Called on the server (authority)
void SCR_AIGroup.SetRadioFrequency | ( | int | frequency | ) |
void SCR_AIGroup.SetSlave | ( | SCR_AIGroup | group | ) |
Set slave subgroup that is used for AI characters when invited by players into this playable SCR_AIGroup.
void SCR_AIGroup.SetSpawnImmediately | ( | bool | spawnImmediately | ) |
void SCR_AIGroup.SetWaypointParams | ( | out AIWaypoint | wp, |
SCR_WaypointPrefabLocation | prefabParams | ||
) |
void SCR_AIGroup.SpawnAllImmediately | ( | ) |
bool SCR_AIGroup.SpawnDelayedGroupMember | ( | int | spawnIndex | ) |
|
protected |
void SCR_AIGroup.SpawnUnits | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ref array<ref SCR_WaypointPrefabLocation> SCR_AIGroup.m_aSpawnedWaypoints |
ref array<string> SCR_AIGroup.m_aStaticVehicles |
ref array<string> SCR_AIGroup.m_aStaticWaypoints |
ref array<ResourceName> SCR_AIGroup.m_aUnitPrefabSlots |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
string SCR_AIGroup.m_faction |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |