Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
SpawnDataConverter Class Reference

Utility class that converts init.c format type of spawn commands to a json file, fill in the SpawnInit() with your data and call SpawnDataConverter.SpawnObjects() through script editor console, result is a json file. More...

Static Private Member Functions

static void AddSpawnData (string objectName, vector position, vector orientation)
static void SpawnInit ()
static void SpawnObjects ()

Static Private Attributes

static string m_Path = "$mission:myspawndata.json"
static ref array< ref ITEM_SpawnerObjectObjects = new array<ref ITEM_SpawnerObject>

Detailed Description

Utility class that converts init.c format type of spawn commands to a json file, fill in the SpawnInit() with your data and call SpawnDataConverter.SpawnObjects() through script editor console, result is a json file.

Definition at line 112 of file objectspawner.c.

Member Function Documentation

◆ AddSpawnData()

void AddSpawnData ( string objectName,
vector position,
vector orientation )
inlinestaticprivate

◆ SpawnInit()

void SpawnInit ( )
inlinestaticprivate

Definition at line 129 of file objectspawner.c.

References AddSpawnData().

Referenced by SpawnObjects().

◆ SpawnObjects()

void SpawnObjects ( )
inlinestaticprivate

Definition at line 117 of file objectspawner.c.

References ErrorEx, m_Path, ObjectSpawnerJson::Objects, Objects, and SpawnInit().

Field Documentation

◆ m_Path

string m_Path = "$mission:myspawndata.json"
staticprivate

Definition at line 115 of file objectspawner.c.

Referenced by SpawnObjects().

◆ Objects

ref array<ref ITEM_SpawnerObject> Objects = new array<ref ITEM_SpawnerObject>
staticprivate

Definition at line 114 of file objectspawner.c.

Referenced by AddSpawnData(), and SpawnObjects().


The documentation for this class was generated from the following file: