Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_DeployableSpawnPoint.c
Go to the documentation of this file.
1
[
EntityEditorProps
(
category
:
"GameScripted/DeployableItems"
, description:
""
, visible:
false
)]
2
class
SCR_DeployableSpawnPointClass
:
SCR_SpawnPointClass
3
{
4
};
5
6
void
SpawnPointInvokerDelegate
(
SCR_DeployableSpawnPoint
spawnPoint,
int
i);
7
typedef
func
SpawnPointInvokerDelegate
;
8
typedef
ScriptInvokerBase<SpawnPointInvokerDelegate>
SCR_DeployableSpawnPoint_Invoker
;
9
10
//------------------------------------------------------------------------------------------------
11
class
SCR_DeployableSpawnPoint
:
SCR_SpawnPoint
12
{
13
protected
static
ref
SCR_DeployableSpawnPoint_Invoker
s_OnPlayerSpawned
;
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
29
if
(
s_OnPlayerSpawned
)
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
{
42
return
m_DeployableSpawnPointComp
;
43
}
44
45
//------------------------------------------------------------------------------------------------
46
static
SCR_DeployableSpawnPoint_Invoker
GetOnPlayerSpawned
()
47
{
48
if
(!
s_OnPlayerSpawned
)
49
s_OnPlayerSpawned
=
new
SCR_DeployableSpawnPoint_Invoker
();
50
51
return
s_OnPlayerSpawned
;
52
}
53
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
func
func
Definition
SCR_AIThreatSystem.c:6
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
SCR_DeployableSpawnPoint_Invoker
ScriptInvokerBase< SpawnPointInvokerDelegate > SCR_DeployableSpawnPoint_Invoker
Definition
SCR_DeployableSpawnPoint.c:8
SpawnPointInvokerDelegate
func SpawnPointInvokerDelegate
Definition
SCR_DeployableSpawnPoint.c:7
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntity
Definition
IEntity.c:13
PlayerManager
Definition
PlayerManager.c:13
SCR_DeployableSpawnPointClass
Definition
SCR_DeployableSpawnPoint.c:3
SCR_DeployableSpawnPoint
Definition
SCR_DeployableSpawnPoint.c:12
SCR_DeployableSpawnPoint::m_DeployableSpawnPointComp
SCR_BaseDeployableSpawnPointComponent m_DeployableSpawnPointComp
Definition
SCR_DeployableSpawnPoint.c:15
SCR_DeployableSpawnPoint::GetDeployableSpawnPointComponent
SCR_BaseDeployableSpawnPointComponent GetDeployableSpawnPointComponent()
Definition
SCR_DeployableSpawnPoint.c:40
SCR_DeployableSpawnPoint::SetDeployableSpawnPointComponent
void SetDeployableSpawnPointComponent(SCR_BaseDeployableSpawnPointComponent spawnPointComp)
Definition
SCR_DeployableSpawnPoint.c:34
SCR_DeployableSpawnPoint::GetOnPlayerSpawned
static SCR_DeployableSpawnPoint_Invoker GetOnPlayerSpawned()
Definition
SCR_DeployableSpawnPoint.c:46
SCR_DeployableSpawnPoint::OnFinalizeSpawnDone_S
override void OnFinalizeSpawnDone_S(SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity)
Definition
SCR_DeployableSpawnPoint.c:18
SCR_DeployableSpawnPoint::s_OnPlayerSpawned
static ref SCR_DeployableSpawnPoint_Invoker s_OnPlayerSpawned
Definition
SCR_DeployableSpawnPoint.c:13
SCR_SpawnData
Definition
SCR_SpawnData.c:10
SCR_SpawnPointClass
Definition
SCR_SpawnPoint.c:3
SCR_SpawnPoint::SCR_SpawnPoint
void SCR_SpawnPoint(IEntitySource src, IEntity parent)
Definition
SCR_SpawnPoint.c:825
scripts
Game
DeployableInventoryItems
SCR_DeployableSpawnPoint.c
Generated by
1.17.0