|
Arma Reforger Script API
|
Public Member Functions | |
| int | GetSpawnQueueSize () |
| SCR_AIGroupUtilityComponent | GetGroupUtilityComponent () |
| int | GetNumberOfMembersToSpawn () |
| void | SetNumberOfMembersToSpawn (int number) |
| void | SetRallyPoint (notnull SCR_MilitaryBaseComponent base, bool force=false) |
| Sets the group Rally Point to the input base. | |
| void | RemoveRallyPoint () |
| Removes current group Rally Point. | |
| int | GetRallyPointId () |
| bool | IsRallyPointForced () |
| 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 () |
| int | GetFirstPlayerLeaderID () |
| Recursively searches through the group hierarchy to find the first leader who is a player. | |
| int | GetDefaultActiveRadioChannel () |
| void | SetDefaultActiveRadioChannel (int id) |
| void | SetPrivate (bool isPrivate) |
| Called on the server (authority) | |
| bool | IsPrivate () |
| void | SetPrivacyChangeable (bool IsPrivacyChangeable) |
| bool | IsPrivacyChangeable () |
| void | SetGroupRole (SCR_EGroupRole groupRole) |
| SCR_EGroupRole | GetGroupRole () |
| string | GetGroupRoleName () |
| 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. | |
| SCR_ECharacterRank | GetRequiredRank () |
| void | SetRequiredRank (SCR_ECharacterRank rank) |
| void | RpcDo_SetRequiredRank (SCR_ECharacterRank rank) |
| bool | IsCreatedByCommander () |
| void | SetCreatedByCommander (bool isCreatedByCommander) |
| bool | IsPredefinedGroup () |
| void | SetPredefinedGroup (bool predefined) |
| void | RpcDo_SetCreatedByCommander (bool isCreatedByCommander) |
| 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 | RPC_DoSetPrivacyChangeable (bool IsPrivacyChangeable) |
| void | RpcDo_SetGroupRole (SCR_EGroupRole groupRole) |
| void | RpcDo_SetRallyPoint (int callsignId, bool force) |
| void | RpcDo_RemoveRallyPoint () |
| 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 | 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 going to be removed from the group. | |
| ScriptInvoker | GetOnWaypointToRemove () |
| Get event called when a waypoint is planned for removal but not removed from the group, yet. | |
| 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) |
| bool | IsLoadoutInGroup (SCR_FactionPlayerLoadout loadout) |
| 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 | CompleteAllWaypoints () |
| void | SCR_AIGroup (IEntitySource src, IEntity parent) |
| void | ~SCR_AIGroup () |
Public Member Functions inherited from AIGroup | |
| proto external void | AddAgent (AIAgent pAgent) |
| proto external void | RemoveAgent (AIAgent pAgent) |
| proto external int | GetAgents (notnull out array< AIAgent > outAgents) |
| proto external int | GetAgentsCount () |
| proto external void | ActivateAllMembers () |
| proto external void | DeactivateAllMembers () |
| proto external AIFormationComponent | GetFormationComponent () |
| proto external void | AddWaypoint (AIWaypoint w) |
| proto external void | RemoveWaypoint (AIWaypoint w) |
| proto external void | AddWaypointAt (AIWaypoint w, int index) |
| proto external void | RemoveWaypointAt (int index) |
| proto external void | CompleteWaypoint (AIWaypoint w) |
| Completes specified waypoint and removes it from the list of waypoints, no need to call RemoveWaypoint. | |
| proto external AIWaypoint | GetCurrentWaypoint () |
| proto external int | GetWaypoints (out array< AIWaypoint > outWaypoints) |
| proto external AIAgent | GetLeaderAgent () |
| proto external IEntity | GetLeaderEntity () |
| proto external vector | GetCenterOfMass () |
| proto external void | SetNewLeader (AIAgent newLeader) |
Public Member Functions inherited from AIAgent | |
| proto external IEntity | GetControlledEntity () |
| proto external AIGroup | GetParentGroup () |
| proto external void | SetLOD (int newLOD) |
| proto external int | GetLOD () |
| proto external void | SetPermanentLOD (int lod) |
| proto external int | GetPermanentLOD () |
| proto external void | PreventMaxLOD (float preventTime=-1) |
| proto external void | AllowMaxLOD () |
| proto external bool | CountTowardsAIWorldLimit () |
| proto external int | GetDangerEventsCount () |
| proto AIDangerEvent | GetDangerEvent (int index, out int outCount) |
| Internally similar danger events can be aggregated. In that case the new danger event is not put into the queue, but instead counter of previous similar event is increased. | |
| proto external void | ClearDangerEvents (int howMany) |
| proto external void | ExtractAIEvents (out notnull array< AIWaypoint > aiEvents) |
| proto external ActionManager | GetActionManager () |
| proto external AICommunicationComponent | GetCommunicationComponent () |
| proto external AIControlComponent | GetControlComponent () |
| proto external AIBaseMovementComponent | GetMovementComponent () |
| proto external AIBaseAimingComponent | GetAimingComponent () |
| proto external void | ActivateAI () |
| proto external void | DeactivateAI () |
| proto external bool | IsAIActivated () |
| void | OnLODChanged (int oldLOD, int newLOD) |
Static Public Member Functions | |
| static ScriptInvoker | GetOnFlagSelected () |
| static ScriptInvoker | GetOnJoinPrivateGroupRequest () |
| static ScriptInvoker | GetOnJoinPrivateGroupConfirm () |
| static ScriptInvoker | GetOnJoinPrivateGroupCancel () |
| static ScriptInvokerBase< ScriptInvokerAIGroup > | GetOnGroupRallyPointChanged () |
| static bool | DeLocalizeText (out string input) |
| static ScriptInvoker | GetOnPlayerAdded () |
| static ScriptInvoker | GetOnPlayerRemoved () |
| static ScriptInvoker | GetOnPlayerLeaderChanged () |
| static ScriptInvoker | GetOnPrivateGroupChanged () |
| static ScriptInvoker | GetOnCustomNameChanged () |
| static ScriptInvoker | GetOnFrequencyChanged () |
| static ScriptInvoker | GetOnCustomDescriptionChanged () |
| static ScriptInvokerGroupRole | GetOnGroupRoleChanged () |
| 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. | |
Static Public Member Functions inherited from AIAgent | |
| static proto int | GetMaxLOD () |
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. | |
| void | OnSpawnPointFinalizeSpawn (SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity) |
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() |
| static ref ScriptInvokerGroupRole | s_OnGroupRoleChanged |
| static ref ScriptInvokerBase< ScriptInvokerAIGroup > | s_OnGroupRallyPointChanged |
| 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.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 | ( | ) |
| void SCR_AIGroup.CompleteAllWaypoints | ( | ) |
|
protected |
| void SCR_AIGroup.DecreaseDeployedRadioCount | ( | ) |
|
static |
|
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 | ( | ) |
| int SCR_AIGroup.GetDefaultActiveRadioChannel | ( | ) |
| 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.
| int SCR_AIGroup.GetFirstPlayerLeaderID | ( | ) |
Recursively searches through the group hierarchy to find the first leader who is a player.
| bool SCR_AIGroup.GetFlagIsFromImageSet | ( | ) |
| ResourceName SCR_AIGroup.GetGroupFlag | ( | ) |
| int SCR_AIGroup.GetGroupID | ( | ) |
| SCR_EGroupRole SCR_AIGroup.GetGroupRole | ( | ) |
| string SCR_AIGroup.GetGroupRoleName | ( | ) |
| 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 | ( | ) |
| ScriptInvoker SCR_AIGroup.GetOnAgentRemoved | ( | ) |
| 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 |
|
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 | ( | ) |
| 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 going to be removed from the group.
Warning: the wp may be null - listener deletes it in EditableGroupComponent! Called only on server. Invoker params are: AIWaypoint wp
| ScriptInvoker SCR_AIGroup.GetOnWaypointToRemove | ( | ) |
Get event called when a waypoint is planned for removal but not removed from the group, yet.
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.GetRallyPointId | ( | ) |
| int SCR_AIGroup.GetRequesterIDs | ( | out array< int > | valueArray | ) |
| SCR_ECharacterRank SCR_AIGroup.GetRequiredRank | ( | ) |
| 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.GetSpawnQueueSize | ( | ) |
| 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)
| 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.IsCreatedByCommander | ( | ) |
| 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.IsLoadoutInGroup | ( | SCR_FactionPlayerLoadout | loadout | ) |
| bool SCR_AIGroup.IsPlayable | ( | ) |
| bool SCR_AIGroup.IsPlayerInGroup | ( | int | playerID | ) |
| bool SCR_AIGroup.IsPlayerLeader | ( | int | playerID | ) |
| bool SCR_AIGroup.IsPredefinedGroup | ( | ) |
| bool SCR_AIGroup.IsPrivacyChangeable | ( | ) |
| bool SCR_AIGroup.IsPrivate | ( | ) |
| bool SCR_AIGroup.IsRallyPointForced | ( | ) |
| bool SCR_AIGroup.IsSlave | ( | ) |
| void SCR_AIGroup.LeaderLifeStateChanged | ( | ECharacterLifeState | previousLifeState, |
| ECharacterLifeState | newLifeState ) |
| void SCR_AIGroup.ListenToMemberDeath | ( | notnull IEntity | groupMember | ) |
| void SCR_AIGroup.NotificateGroupAIChange | ( | IEntity | controlledEntity, |
| ENotification | notificationType ) |
| void SCR_AIGroup.OnControllableEntitySpawned | ( | IEntity | controlledEntity, |
| notnull SCR_GadgetManagerComponent | gadgetManager ) |
| override void SCR_AIGroup.OnCurrentWaypointChanged | ( | AIWaypoint | currentWP, |
| AIWaypoint | prevWP ) |
Implements AIGroup.
| void SCR_AIGroup.OnDescFilteredCallback | ( | array< string > | resultText | ) |
| override void SCR_AIGroup.OnEmpty | ( | ) |
Implements AIGroup.
| void SCR_AIGroup.OnGroupMemberStateChange | ( | ) |
Should only be called on the server (authority)
Implements AIGroup.
| 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.
|
protected |
| override void SCR_AIGroup.OnWaypointAdded | ( | AIWaypoint | wp | ) |
Implements AIGroup.
| override void SCR_AIGroup.OnWaypointCompleted | ( | AIWaypoint | wp | ) |
Implements AIGroup.
| override void SCR_AIGroup.OnWaypointRemoved | ( | AIWaypoint | wp, |
| bool | isCurrentWaypoint ) |
Implements AIGroup.
| 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.RemoveRallyPoint | ( | ) |
Removes current group Rally Point.
| void SCR_AIGroup.RemoveRequester | ( | int | playerID | ) |
| void SCR_AIGroup.RemoveStaticWaypointRefs | ( | array< string > | aWaypointNames | ) |
| 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_DoSetPrivacyChangeable | ( | bool | IsPrivacyChangeable | ) |
| void SCR_AIGroup.RPC_SetLeaderID | ( | int | playerID | ) |
| void SCR_AIGroup.RPC_SetPrivate | ( | bool | isPrivate | ) |
| void SCR_AIGroup.RpcDo_RemoveRallyPoint | ( | ) |
| void SCR_AIGroup.RpcDo_SetCreatedByCommander | ( | bool | isCreatedByCommander | ) |
| void SCR_AIGroup.RpcDo_SetGroupRole | ( | SCR_EGroupRole | groupRole | ) |
| void SCR_AIGroup.RpcDo_SetRallyPoint | ( | int | callsignId, |
| bool | force ) |
| void SCR_AIGroup.RpcDo_SetRequiredRank | ( | SCR_ECharacterRank | rank | ) |
| 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.SetCreatedByCommander | ( | bool | isCreatedByCommander | ) |
| 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.SetDefaultActiveRadioChannel | ( | int | id | ) |
| 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.SetGroupRole | ( | SCR_EGroupRole | groupRole | ) |
| 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.SetPredefinedGroup | ( | bool | predefined | ) |
| void SCR_AIGroup.SetPrivacyChangeable | ( | bool | IsPrivacyChangeable | ) |
| void SCR_AIGroup.SetPrivate | ( | bool | isPrivate | ) |
Called on the server (authority)
| void SCR_AIGroup.SetRadioFrequency | ( | int | frequency | ) |
| void SCR_AIGroup.SetRallyPoint | ( | notnull SCR_MilitaryBaseComponent | base, |
| bool | force = false ) |
Sets the group Rally Point to the input base.
| [in] | base | to set rally point to |
| [in] | if | rally point should be force set or not |
| void SCR_AIGroup.SetRequiredRank | ( | SCR_ECharacterRank | rank | ) |
| [in] | rank |
| 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 |
|
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 |
|
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 |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |