Code:
Problem description: So i was hoping that if i had a z plane of 5. And i wanted to remove the z plane in the 3rd position for example that there was an easy way. From my knowledge what id have to do is subtract world.maxz and replace the previous max z into position 3. In essence id have to copy the final z plane and copy it into the 3rd plane and then subtract the maxz essentially getting rid of anything that was in the final plane and anything that was in the third plane is now what was the final plane. Of course this seems like it would take a lot of resources and players might notice.
If this makes sense can anyone help please. is this the only way to do it? or can your litterally delete a z plane at a specific number
I think the question is wrong. There are workarounds for you to not have to do this, like keeping a list of active z-levels. If you're using map instancing, you would create new maps in the first inactive level after clearing it, rather than always increasing world.maxz and loading the map at the last level.
|
well to be more specific how do i create more maps without loading a map onto the next z level. or are you saying create new maps but dont delete them, just put players into the inactive ones?
|
Though, there's a riskier way to do it. Open the map in notepad. Select and delete the layer you want to remove. Then renumber the subsequent Z-layers' identity blocks.
Delete block 2, and rename block 3 to block 2:
Make sure you save a copy of your map before you do this, because you could wind up corrupting the DMM.