Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DeployableSpawnPoint.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/DeployableItems", description: "", visible: false)]
5
8typedef ScriptInvokerBase<SpawnPointInvokerDelegate> SCR_DeployableSpawnPoint_Invoker;
9
10//------------------------------------------------------------------------------------------------
12{
14
15 protected SCR_BaseDeployableSpawnPointComponent m_DeployableSpawnPointComp;
16
17 //------------------------------------------------------------------------------------------------
18 override void OnFinalizeSpawnDone_S(SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity)
19 {
20 super.OnFinalizeSpawnDone_S(requestComponent, data, entity);
21
22 PlayerManager playerManager = GetGame().GetPlayerManager();
23 if (!playerManager)
24 return;
25
26 int userID = playerManager.GetPlayerIdFromControlledEntity(entity);
27
28 // param1: spawnpoint entity from which event was invoked; param2: player who spawned
30 s_OnPlayerSpawned.Invoke(this, userID);
31 }
32
33 //------------------------------------------------------------------------------------------------
34 void SetDeployableSpawnPointComponent(SCR_BaseDeployableSpawnPointComponent spawnPointComp)
35 {
36 m_DeployableSpawnPointComp = spawnPointComp;
37 }
38
39 //------------------------------------------------------------------------------------------------
40 SCR_BaseDeployableSpawnPointComponent GetDeployableSpawnPointComponent()
41 {
43 }
44
45 //------------------------------------------------------------------------------------------------
53}
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
ScriptInvokerBase< SpawnPointInvokerDelegate > SCR_DeployableSpawnPoint_Invoker
func SpawnPointInvokerDelegate
Get all prefabs that have the spawner data
SCR_BaseDeployableSpawnPointComponent m_DeployableSpawnPointComp
SCR_BaseDeployableSpawnPointComponent GetDeployableSpawnPointComponent()
void SetDeployableSpawnPointComponent(SCR_BaseDeployableSpawnPointComponent spawnPointComp)
static SCR_DeployableSpawnPoint_Invoker GetOnPlayerSpawned()
override void OnFinalizeSpawnDone_S(SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity)
static ref SCR_DeployableSpawnPoint_Invoker s_OnPlayerSpawned
void SCR_SpawnPoint(IEntitySource src, IEntity parent)