24.07.2018, 13:42
You'll need a loop to go through the array, something like this:
Where "Coords" is the array you use to hold the coordinates.
The array is a 2D Array, the first dimension being the ID of the Robbery Place and the second dimension are the actual coords. 0 - 2 are X, Y, Z and 3 - 5 are RX, RY, RZ (if you also have rotations in the array).
You might also want to save the Dynamic Object IDs in an Array in case you need them later on.
Код:
for(new i = 0; i < sizeof(Coords); i ++) { CreateDynamicObject(model, Coords[i][0], Coords[i][1], Coords[i][2], Coords[i][3], Coords[i][4], Coords[i][5], ...); }
The array is a 2D Array, the first dimension being the ID of the Robbery Place and the second dimension are the actual coords. 0 - 2 are X, Y, Z and 3 - 5 are RX, RY, RZ (if you also have rotations in the array).
You might also want to save the Dynamic Object IDs in an Array in case you need them later on.