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

Go to the source code of this file.

Classes

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 ()
void OnSetPlayerID ()
override string GetSpawnPointName ()
void EnablePoint (int playerId, IEntity playerEntity)
void DisablePoint (int playerId)
void ActivateSpawnPoint ()
override bool IsSpawnPointActive ()
void DeactivateSpawnPoint ()
void UpdateSpawnPos ()
void UpdateSpawnPosBroadcast (vector pos)
override void GetPositionAndRotation (out vector pos, out vector rot)
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)
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()

void ActivateSpawnPoint ( )
protected

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 1 of file SCR_PlayerSpawnPoint.c.

◆ CanFinalizeSpawn_S()

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

Definition at line 273 of file SCR_PlayerSpawnPoint.c.

◆ CanReserveFor_S()

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

Definition at line 191 of file SCR_PlayerSpawnPoint.c.

◆ DeactivateSpawnPoint()

void DeactivateSpawnPoint ( )
protected

Definition at line 131 of file SCR_PlayerSpawnPoint.c.

◆ DisablePoint()

void DisablePoint ( int playerId)
protected
Parameters
[in]playerId

Definition at line 96 of file SCR_PlayerSpawnPoint.c.

◆ EnablePoint()

void EnablePoint ( int playerId,
IEntity playerEntity )
protected
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 )
protected

Definition at line 162 of file SCR_PlayerSpawnPoint.c.

◆ GetSpawnPointName()

override string GetSpawnPointName ( )
protected

Definition at line 71 of file SCR_PlayerSpawnPoint.c.

◆ GetTargetVehicle()

Vehicle GetTargetVehicle ( )
protected

Definition at line 178 of file SCR_PlayerSpawnPoint.c.

◆ IsSpawnPointActive()

override bool IsSpawnPointActive ( )
protected

Definition at line 125 of file SCR_PlayerSpawnPoint.c.

◆ OnFinalizeSpawnDone_S()

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

Definition at line 287 of file SCR_PlayerSpawnPoint.c.

◆ OnSetPlayerID()

void OnSetPlayerID ( )
protected

Definition at line 60 of file SCR_PlayerSpawnPoint.c.

◆ PrepareSpawnedEntity_S()

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

Definition at line 221 of file SCR_PlayerSpawnPoint.c.

◆ PrepareSpawnedEntityForVehicle_S()

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

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()

void UpdateSpawnPos ( )
protected

Definition at line 144 of file SCR_PlayerSpawnPoint.c.

◆ UpdateSpawnPosBroadcast()

void UpdateSpawnPosBroadcast ( vector pos)
protected

Definition at line 156 of file SCR_PlayerSpawnPoint.c.

◆ ~SCR_PlayerSpawnPoint()

void ~SCR_PlayerSpawnPoint ( )
protected

Definition at line 293 of file SCR_PlayerSpawnPoint.c.