Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
SCR_VehicleSpawner.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_VehicleSpawnerClass
 

Functions

override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
ResourceName PickRandomResource (array< ResourceName > resources)
 
void PerformSpawn ()
 
void SCR_VehicleSpawner (IEntityComponentSource src, IEntity ent, IEntity parent)
 
void ~SCR_VehicleSpawner ()
 

Variables

SCR_VehicleSpawnerClass MIN_DISTANCE = 10
 
private ref array< ResourceName > m_aPrefabs
 
private IEntity m_pSpawnedEntity
 
private IEntity m_owner
 
private bool m_bSpawned = false
 

Function Documentation

◆ PerformSpawn()

void PerformSpawn ( )

Definition at line 43 of file SCR_VehicleSpawner.c.

◆ PickRandomResource()

ResourceName PickRandomResource ( array< ResourceName >  resources)
Parameters
[in]resources
Returns

Definition at line 28 of file SCR_VehicleSpawner.c.

◆ SCR_VehicleSpawner()

void SCR_VehicleSpawner ( IEntityComponentSource  src,
IEntity  ent,
IEntity  parent 
)
Parameters
[in]src
[in]ent
[in]parent

Definition at line 86 of file SCR_VehicleSpawner.c.

◆ ~SCR_VehicleSpawner()

void ~SCR_VehicleSpawner ( )

Definition at line 92 of file SCR_VehicleSpawner.c.

Variable Documentation

◆ m_aPrefabs

private ref array<ResourceName> m_aPrefabs

Definition at line 11 of file SCR_VehicleSpawner.c.

◆ m_bSpawned

private bool m_bSpawned = false

Definition at line 16 of file SCR_VehicleSpawner.c.

◆ m_owner

private IEntity m_owner

Definition at line 14 of file SCR_VehicleSpawner.c.

◆ m_pSpawnedEntity

private IEntity m_pSpawnedEntity

Definition at line 13 of file SCR_VehicleSpawner.c.

◆ MIN_DISTANCE

SCR_VehicleSpawnerClass MIN_DISTANCE = 10