Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SpawnerRequestComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_SpawnerRequestComponentClass

Functions

SCR_SpawnerRequestComponentClass ScriptGameComponentClass RplProp ()] protected int m_iQueuedAIs
 Used for handling entity spawning requests for SCR_CatalogEntitySpawnerComponent and inherited classes, attached to SCR_PlayerController.
void RequestPlayerTeleport (vector position)
void RPC_DoTeleportPlayer (vector position)
void AddQueuedAI (int value)
 Add (or substract) AI to quenue.
int GetQueuedAIs ()
void EnableSpawning (notnull SCR_DefenderSpawnerComponent defenderSpawnerComp, bool enable, int playerID)
void RPC_DoEnableSpawning (RplId defenderSpawnerID, bool enable, int playerID)
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 SendPlayerFeedback (int msgID, int assetIndex, int catalogType=-1)
void RPC_DoPlayerFeedbackImpl (int msgID, int assetIndex, int catalogType)
 Show notification about request result to the requester.
string GetMessageStringForCatalogType (EEntityCatalogType catalogType)
override void OnPostInit (IEntity owner)
 Editable Mine.

Function Documentation

◆ AddQueuedAI()

void AddQueuedAI ( int value)
protected

Add (or substract) AI to quenue.

Definition at line 30 of file SCR_SpawnerRequestComponent.c.

◆ EnableSpawning()

void EnableSpawning ( notnull SCR_DefenderSpawnerComponent defenderSpawnerComp,
bool enable,
int playerID )
protected

Defender spawner request from SCR_EnableDefendersAction

Parameters
[in]defenderSpawnerCompDefenderSpawner component to be handled
[in]enableto enable or disable unit spawning
[in]playerIDid of player requesting the spawn

Definition at line 51 of file SCR_SpawnerRequestComponent.c.

◆ GetMessageStringForCatalogType()

string GetMessageStringForCatalogType ( EEntityCatalogType catalogType)
protected
Parameters
[in]catalogTypecatalog type from enum.
Returns
string ID to be used in succesful request feedbacks.

Definition at line 196 of file SCR_SpawnerRequestComponent.c.

◆ GetQueuedAIs()

int GetQueuedAIs ( )
protected
Returns
queued requested AI units count that are currently on the way to rally point and not yet in player's group

Definition at line 41 of file SCR_SpawnerRequestComponent.c.

◆ RequestCatalogEntitySpawn()

void RequestCatalogEntitySpawn ( int index,
notnull SCR_CatalogEntitySpawnerComponent spawnerComponent,
IEntity user,
SCR_EntitySpawnerSlotComponent slot )
protected

Entity spawn request from SCR_SpawnEntityUserAction

Parameters
[in]indexitem index in User Action
[in]spawnerComponentSpawnerComponent on which should be entity spawned
[in]userthe user requesting spawn
[in]sloton which should be entity spawned

Definition at line 89 of file SCR_SpawnerRequestComponent.c.

◆ RequestPlayerTeleport()

void RequestPlayerTeleport ( vector position)
Parameters
[in]position

Definition at line 16 of file SCR_SpawnerRequestComponent.c.

◆ RPC_DoEnableSpawning()

void RPC_DoEnableSpawning ( RplId defenderSpawnerID,
bool enable,
int playerID )
protected

Performs request on server

Parameters
[in]rplCompIdRplComp id of entity with SCR_DefenderSpawnerComponent
[in]indexitem index in User Faction
[in]playerIDid of player requesting the spawn

Definition at line 70 of file SCR_SpawnerRequestComponent.c.

◆ RPC_DoPlayerFeedbackImpl()

void RPC_DoPlayerFeedbackImpl ( int msgID,
int assetIndex,
int catalogType )
protected

Show notification about request result to the requester.

Definition at line 155 of file SCR_SpawnerRequestComponent.c.

◆ RPC_DoRequestCatalogSpawn()

void RPC_DoRequestCatalogSpawn ( RplId rplCompId,
int index,
int userId,
RplId slotRplId )
protected

Performs request on server

Parameters
[in]rplCompIdRplComp id of entity with spawner component
[in]indexitem index in User Action
[in]userIdid of user requesting spawn
[in]slotRplIdslot RplID OPTIONAL

Definition at line 117 of file SCR_SpawnerRequestComponent.c.

◆ RPC_DoTeleportPlayer()

void RPC_DoTeleportPlayer ( vector position)
protected

Definition at line 23 of file SCR_SpawnerRequestComponent.c.

◆ RplProp()

Used for handling entity spawning requests for SCR_CatalogEntitySpawnerComponent and inherited classes, attached to SCR_PlayerController.

◆ SendPlayerFeedback()

void SendPlayerFeedback ( int msgID,
int assetIndex,
int catalogType = -1 )
protected

Send notification to player

Parameters
[in]msgID
[in]assetIndex
[in]catalogType

Definition at line 147 of file SCR_SpawnerRequestComponent.c.