4 "DZ\\plants",
"DZ\\plants_bliss",
"DZ\\plants_sakhal",
5 "DZ\\rocks",
"DZ\\rocks_bliss",
"DZ\\rocks_sakhal",
6 "DZ/plants",
"DZ/plants_bliss",
"DZ/plants_sakhal",
7 "DZ/rocks",
"DZ/rocks_bliss",
"DZ/rocks_sakhal",
16 foreach (
string spawnerFilePath: arr)
18 string path =
"$mission:" + spawnerFilePath;
22 if (JsonFileLoader<ObjectSpawnerJson>.LoadFile(
path, spawner, errorMessage))
37 float scale = item.
scale;
61 object.SetScale(scale);
63 object.OnSpawnByObjectSpawner(item);
115 static string m_Path =
"$mission:myspawndata.json";
125 if (!JsonFileLoader<ObjectSpawnerJson>.SaveFile(
m_Path, j, errorMessage))
131 AddSpawnData(
"Land_Wall_Gate_FenR",
"8406.501953 107.736824 12782.338867",
"0.000000 0.000000 0.000000");
132 AddSpawnData(
"Land_Wall_Gate_FenR",
"8410.501953 107.736824 12782.338867",
"0.000000 0.000000 0.000000");
133 AddSpawnData(
"Land_Wall_Gate_FenR",
"8416.501953 107.736824 12782.338867",
"0.000000 0.000000 0.000000");
134 AddSpawnData(
"Land_Wall_Gate_FenR",
"8422.501953 107.736824 12782.338867",
"0.000000 0.000000 0.000000");
140 obj.
name = objectName;
141 obj.
pos[0] = position[0];
142 obj.
pos[1] = position[1];
143 obj.
pos[2] = position[2];
145 obj.
ypr[0] = orientation[0];
146 obj.
ypr[1] = orientation[1];
147 obj.
ypr[2] = orientation[2];
const int ECE_UPDATEPATHGRAPH
const int ECE_DYNAMIC_PERSISTENCY
const int ECE_CREATEPHYSICS
proto native World GetWorld()
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native Object CreateStaticObjectUsingP3D(string p3dFilename, vector position, vector orientation, float scale=1.0, bool createLocal=false)
static TStringArray GetObjectSpawnersArr()
static void SpawnObject(ITEM_SpawnerObject item)
static bool ValidatePath(string path)
static const ref TStringArray VALID_PATHS
static void OnGameplayDataHandlerLoad()
static void SpawnObjects()
ref array< ref ITEM_SpawnerObject > Objects
static void SpawnObjects()
static ref array< ref ITEM_SpawnerObject > Objects
static void AddSpawnData(string objectName, vector position, vector orientation)
Utility class that converts init.c format type of spawn commands to a json file, fill in the SpawnIni...
proto native void ProcessMarkedObjectsForPathgraphUpdate()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static vector ArrayToVec(float arr[])
Convert static array of floats into a vector.
proto native CGame GetGame()
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
array< string > TStringArray
bool Contains(string sample)
Returns true if sample is substring of string.