9 protected int m_iQueuedAIs;
11 static const float NOTIFICATION_DURATION = 2;
32 m_iQueuedAIs += value;
33 if (m_iQueuedAIs <= 0)
53 IEntity spawnerOwnerEntity = defenderSpawnerComp.GetOwner();
54 if (!spawnerOwnerEntity)
57 RplComponent spawnerRplComp = RplComponent.Cast(spawnerOwnerEntity.
FindComponent(RplComponent));
72 RplComponent rplComp = RplComponent.Cast(
Replication.FindItem(defenderSpawnerID));
77 if (!entitySpawnerComp)
91 int userId =
GetGame().GetPlayerManager().GetPlayerIdFromControlledEntity(user);
95 IEntity spawnerOwnerEntity = spawnerComponent.GetOwner();
96 if (!spawnerOwnerEntity)
99 RplComponent spawnerRplComp = RplComponent.Cast(spawnerOwnerEntity.
FindComponent(RplComponent));
103 RplComponent slotRplComp = RplComponent.Cast(slot.GetOwner().FindComponent(RplComponent));
119 RplComponent rplComp = RplComponent.Cast(
Replication.FindItem(rplCompId));
123 SCR_CatalogEntitySpawnerComponent entitySpawnerComp = SCR_CatalogEntitySpawnerComponent.Cast(rplComp.GetEntity().FindComponent(SCR_CatalogEntitySpawnerComponent));
124 if (!entitySpawnerComp)
131 RplComponent slotRplComp = RplComponent.Cast(
Replication.FindItem(slotRplId));
135 SCR_EntitySpawnerSlotComponent slotComp = SCR_EntitySpawnerSlotComponent.Cast(slotRplComp.GetEntity().FindComponent(SCR_EntitySpawnerSlotComponent));
139 entitySpawnerComp.InitiateSpawn(entityEntry, userId, slotComp);
162 msg =
"#AR-Campaign_DeliveryPointObstructed-UC";
187 if (msg2 ==
string.Empty)
202 return "#AR-Campaign_VehicleReady-UC";
206 return "#AR-Campaign_UnitReady-UC";
210 return "#AR-Campaign_GroupReady-UC";
215 return "#AR-Campaign_AssetReady-UC";
ArmaReforgerScripted GetGame()
SCR_CacheNoteComponentClass ScriptComponentClass RplProp()] protected ref array< string > m_aLines
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
SCR_EPlayerTeleportedReason
void AddQueuedAI(int value)
Add (or substract) AI to quenue.
void RequestPlayerTeleport(vector position)
void RPC_DoPlayerFeedbackImpl(int msgID, int assetIndex, int catalogType)
Show notification about request result to the requester.
void RPC_DoEnableSpawning(RplId defenderSpawnerID, bool enable, int playerID)
void SendPlayerFeedback(int msgID, int assetIndex, int catalogType=-1)
void RPC_DoTeleportPlayer(vector position)
void RequestCatalogEntitySpawn(int index, notnull SCR_CatalogEntitySpawnerComponent spawnerComponent, IEntity user, SCR_EntitySpawnerSlotComponent slot)
void RPC_DoRequestCatalogSpawn(RplId rplCompId, int index, int userId, RplId slotRplId)
void EnableSpawning(notnull SCR_DefenderSpawnerComponent defenderSpawnerComp, bool enable, int playerID)
string GetMessageStringForCatalogType(EEntityCatalogType catalogType)
void Rpc(func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
proto external Managed FindComponent(typename typeName)
Replication item identifier.
Service providing group of defenders defined in faction. Requires SCR_EnableDefenderAction on ActionM...
void EnableSpawning(bool enable, int playerID)
Get prefab entity Data of type Ignores disabled Data s param dataType class of Data type you with to obtain return Entity Data of given type Null if not found *SCR_BaseEntityCatalogData GetEntityDataOfType(typename dataType)
Get Name of entity Prefab needs to be an editable entity return empty string if no uiinfo was found *LocalizedString GetEntityName()
Get Catalog Entry of index Can ignores disabled entries param Index of entry within list return Catalog Entry Null if entry is disabled *SCR_EntityCatalogEntry GetCatalogEntry(int index)
Get Localized overwrite name Empty if no name is overwritten return Localized overwrite name *LocalizedString GetOverwriteName()
SCR_EntityCatalog GetFactionEntityCatalogOfType(EEntityCatalogType catalogType, bool printNotFound=true)
static bool TeleportLocalPlayer(vector worldPosition, SCR_EPlayerTeleportedReason teleportReason=SCR_EPlayerTeleportedReason.DEFAULT)
static Faction GetLocalControlledEntityFaction()
Takes care of dynamic and static onscreen popups.
void PopupMsg(string text, float duration=DEFAULT_DURATION, string text2="", int prio=-1, string param1="", string param2="", string param3="", string param4="", string text2param1="", string text2param2="", string text2param3="", string text2param4="", string sound="", SCR_EPopupMsgFilter category=SCR_EPopupMsgFilter.ALL, WorldTimestamp progressStart=null, WorldTimestamp progressEnd=null)
static SCR_PopUpNotification GetInstance()
proto external PlayerController GetPlayerController()
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.