Jump to content

[c++] How create a load terrain

Recommended Posts

I want to create a terrain, which will be loaded when player to be in it. How I can do it? Be desirable, if you can give me example on c++ code. Thanks in advance.

Share this post

Link to post

I think, that if you use Map::Load(), you load new map. And it is necessary to me that in one world some terrains were loaded. And I get open world

Share this post

Link to post

Whenever you use Map::Load, a new map enters the current existing world. So if you load map1 and map2, both will be merged into the world.


Alternatively, you can do something like this:

Terrain *mTerrain = Terrain::Create();

And work from there. I haven't seen any documentation of it on the wiki about it though. I'd recommend making a terrain in the editor (as seperate map) if you know what you want for your world.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...