Suggestion General Custom map entities

Users who are viewing this thread


I've been trying to set up a spawnable + interactable entity on the campaign map, something like randomly spawning treasure chests. It seems like the engine is hardcoded to only have Settlements and MobileParties as actual interactable targets, since the MobileParty class only has functions that target either positions, settlements, or other parties. Since settlements can't be dynamically spawned (to my knowledge), it seems like my only option is to have a MobileParty that doesn't move, with some event handlers to open a custom menu.

Are there currently any cleaner ways to achieve this?

If I'm not missing anything obvious, then I'd suggest the devs add some kind of IMapTarget (inherits IMapPoint) or MapObjectBase. It could have functions like OnArrival, OnClicked, OnTargetLost, and maybe some support for custom nameplates/tooltips. I think having the ability to add more types of things on the campaign map would open up a lot creatively.


Community Manager
@Yartch @FullmetalAnalyst Our gameplay programmer @beybi123 has been working on this recently. With a future patch, you should be able to implement an interface called "IMapEntity" and use it to spawn custom objects around the world map. We'll also add OnMapClick and OnHover behaviours.


@Yartch @Dejan Hi, guys I am trying dynamically spawn a settlement in the world map. I am just wondering if you guys are able to do that? No quite understand how to use this "IMapEntity" to spawn custom objects. Can anyone just tell me which class I should look at.
Top Bottom