Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PlayerSpawnPoint.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_PlayerSpawnPointClass
 

Functions

SCR_PlayerSpawnPointClass SCR_SpawnPointClass Attribute ("1", desc:"How often will the spawn's position be updated to match assigned player's position (in seconds).", category:"Player Spawn Point")
 
void SetPlayerID (int playerID)
 
int GetPlayerID ()
 
protected void OnSetPlayerID ()
 
protected override string GetSpawnPointName ()
 
void EnablePoint (int playerId, IEntity playerEntity)
 
void DisablePoint (int playerId)
 
protected void ActivateSpawnPoint ()
 
override bool IsSpawnPointActive ()
 
protected void DeactivateSpawnPoint ()
 
protected void UpdateSpawnPos ()
 
protected void UpdateSpawnPosBroadcast (vector pos)
 
override void GetPositionAndRotation (out vector pos, out vector rot)
 
protected Vehicle GetTargetVehicle ()
 
override bool CanReserveFor_S (int playerId, out SCR_ESpawnResult result=SCR_ESpawnResult.SPAWN_NOT_ALLOWED)
 
override bool PrepareSpawnedEntity_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity)
 
protected bool PrepareSpawnedEntityForVehicle_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity, Vehicle vehicle)
 
override bool CanFinalizeSpawn_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity)
 
override void OnFinalizeSpawnDone_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnData data, IEntity entity)
 
void ~SCR_PlayerSpawnPoint ()
 

Function Documentation

◆ ActivateSpawnPoint()

protected void ActivateSpawnPoint ( )

Definition at line 111 of file SCR_PlayerSpawnPoint.c.

◆ Attribute()

SCR_PlayerSpawnPointClass SCR_SpawnPointClass Attribute ( "1"  ,
desc:"How often will the spawn's position be updated to match assigned player's position (in seconds)."  ,
category:"Player Spawn Point"   
)
Returns

Definition at line 8 of file SCR_PlayerSpawnPoint.c.

◆ CanFinalizeSpawn_S()

override bool CanFinalizeSpawn_S ( SCR_SpawnRequestComponent  requestComponent,
SCR_SpawnData  data,
IEntity  entity 
)

Definition at line 270 of file SCR_PlayerSpawnPoint.c.

◆ CanReserveFor_S()

override bool CanReserveFor_S ( int  playerId,
out SCR_ESpawnResult  result = SCR_ESpawnResult.SPAWN_NOT_ALLOWED 
)

Definition at line 191 of file SCR_PlayerSpawnPoint.c.

◆ DeactivateSpawnPoint()

protected void DeactivateSpawnPoint ( )

Definition at line 131 of file SCR_PlayerSpawnPoint.c.

◆ DisablePoint()

void DisablePoint ( int  playerId)
Parameters
[in]playerId

Definition at line 96 of file SCR_PlayerSpawnPoint.c.

◆ EnablePoint()

void EnablePoint ( int  playerId,
IEntity  playerEntity 
)
Parameters
[in]playerId
[in]playerEntity

Definition at line 80 of file SCR_PlayerSpawnPoint.c.

◆ GetPlayerID()

int GetPlayerID ( )

Get ID of the player this spawn point is assigned to.

Returns
Target player ID

Definition at line 54 of file SCR_PlayerSpawnPoint.c.

◆ GetPositionAndRotation()

override void GetPositionAndRotation ( out vector  pos,
out vector  rot 
)

Definition at line 162 of file SCR_PlayerSpawnPoint.c.

◆ GetSpawnPointName()

protected override string GetSpawnPointName ( )

Definition at line 71 of file SCR_PlayerSpawnPoint.c.

◆ GetTargetVehicle()

protected Vehicle GetTargetVehicle ( )

Definition at line 178 of file SCR_PlayerSpawnPoint.c.

◆ IsSpawnPointActive()

override bool IsSpawnPointActive ( )

Definition at line 125 of file SCR_PlayerSpawnPoint.c.

◆ OnFinalizeSpawnDone_S()

override void OnFinalizeSpawnDone_S ( SCR_SpawnRequestComponent  requestComponent,
SCR_SpawnData  data,
IEntity  entity 
)

Definition at line 284 of file SCR_PlayerSpawnPoint.c.

◆ OnSetPlayerID()

protected void OnSetPlayerID ( )

Definition at line 60 of file SCR_PlayerSpawnPoint.c.

◆ PrepareSpawnedEntity_S()

override bool PrepareSpawnedEntity_S ( SCR_SpawnRequestComponent  requestComponent,
SCR_SpawnData  data,
IEntity  entity 
)

Definition at line 221 of file SCR_PlayerSpawnPoint.c.

◆ PrepareSpawnedEntityForVehicle_S()

protected bool PrepareSpawnedEntityForVehicle_S ( SCR_SpawnRequestComponent  requestComponent,
SCR_SpawnData  data,
IEntity  entity,
Vehicle  vehicle 
)

Definition at line 247 of file SCR_PlayerSpawnPoint.c.

◆ SetPlayerID()

void SetPlayerID ( int  playerID)

Assign player ID to this respawn point. It will then present itself as the player, and spawning on it will actually spawn the new player on position of assignd player.

Parameters
[in]playerIDTarget player ID

Definition at line 34 of file SCR_PlayerSpawnPoint.c.

◆ UpdateSpawnPos()

protected void UpdateSpawnPos ( )

Definition at line 144 of file SCR_PlayerSpawnPoint.c.

◆ UpdateSpawnPosBroadcast()

protected void UpdateSpawnPosBroadcast ( vector  pos)

Definition at line 156 of file SCR_PlayerSpawnPoint.c.

◆ ~SCR_PlayerSpawnPoint()

void ~SCR_PlayerSpawnPoint ( )

Definition at line 290 of file SCR_PlayerSpawnPoint.c.