Hi brothers!.
currently I'm using the following function to save coordinateS (Z) of all vertices of my Terrain!
total_vertices = ent_status(entNewTerrain,0);
if(game_load(name, 1) > 0) // previously saved data exists?
{
var index = 0;
while(index <= total_vertices) // then load the previously stored height values and apply them to the terrain
{
// no need to load the x and y coordinates of the terrain - they can't be changed
vec_to_mesh(vector (0, 0, terrain_values_i[index]), entNewTerrain, index);
index += 1;
}
}
This function works well but does not like to use game_load.
When I make any changes in the script, the data saved as game_save not work. So I'm saving this data in a TEXT file. The difficulty in this case is on recovering this data.
Could someone give me a hand please?