23.09.2012, 12:20
Does anyone know how to raise the a whole custom map itself, like if I wanted to raise like 5 z coords up, but not doing it the hard way...
new
Float: X,
Float: Y,
Float: Z
;
while(first != last) {
GetObjectPos(first, X, Y, Z);
SetObjectPos(first, X, Y, Z + 5.0);
first++;
}
I expect your create all objects in a row, after each other
Than you just loop from the first till the last object and raise it Example code pawn Код:
|
So your saying the code will rise every object of mine? And I just want to raise the map this time only once, and ingame could help I guess.
|
I really don't think that you can do it.
And i don't think you can modify any object that you didn't create, you can only delete them using JernJel's map editor. |
Put them all in a file, read the file, read all Z values, increase the Z values by x amount, write it back to the file,
![]() |
Its an example code, you only need to specify the first and the last object
He said But at the moment I am not sure if he meant a custom map, also created with CreateObject, or San Andreas Also fine but I dont think there is a problem if you put an loop in OnGameModeInit ![]() |