Enemy/Party-Detection on Campaign Map

Users who are viewing this thread

CodeBlack

Recruit
Hello there :smile:
Does anyone know how the enemy/ party detection or the collision detection on the campaign map is working?

I want to add a modded event based on parties in proximity.
First i was thinking of simply making a script that can bee added to a collider through the map editor, but so far i havent been able to figure out if such collider component even exists in the editor.
Then i had the idea to just bind it to campaign events in my module, but so far i have not found a way to access the Spotted Enemies of a settlement, only the count of those.
I saw there is a method to find parties around coordinates under MobileParty, but i could not figure out how to use it properly without the game crashing.

Any Ideas? Is this even possible?
 
Solution
Hello there :smile:
Does anyone know how the enemy/ party detection or the collision detection on the campaign map is working?

I want to add a modded event based on parties in proximity.
First i was thinking of simply making a script that can bee added to a collider through the map editor, but so far i havent been able to figure out if such collider component even exists in the editor.
Then i had the idea to just bind it to campaign events in my module, but so far i have not found a way to access the Spotted Enemies of a settlement, only the count of those.
I saw there is a method to find parties around coordinates under MobileParty, but i could not figure out how to use it properly without the game crashing.

Any Ideas? Is this...
Hello there :smile:
Does anyone know how the enemy/ party detection or the collision detection on the campaign map is working?

I want to add a modded event based on parties in proximity.
First i was thinking of simply making a script that can bee added to a collider through the map editor, but so far i havent been able to figure out if such collider component even exists in the editor.
Then i had the idea to just bind it to campaign events in my module, but so far i have not found a way to access the Spotted Enemies of a settlement, only the count of those.
I saw there is a method to find parties around coordinates under MobileParty, but i could not figure out how to use it properly without the game crashing.

Any Ideas? Is this even possible?
I suggest you check the api documentation https://apidoc.bannerlord.com/v/1.0...ounter.html#ae1a7f46b7aca90196590438f4a48306e https://apidoc.bannerlord.com/v/1.0...entity.html#aaddd25ed0bf5a3302352b9c85a7d9386 or, failing that, ask in the bl-coding channel of Mount & Blade Modding discord.
 
Last edited:
Upvote 0
Solution
I suggest you check the api documentation https://apidoc.bannerlord.com/v/1.0...ounter.html#ae1a7f46b7aca90196590438f4a48306e https://apidoc.bannerlord.com/v/1.0...entity.html#aaddd25ed0bf5a3302352b9c85a7d9386 or, failing that, ask in the bl-coding channel of Mount & Blade Modding discord.
Thank you very much!
good to know there is a third documentation page Oo I will read through there and will hopefully find what im looking for!
I always forget that Discord is more or less hte new Forums system...i should check there more often if im looking for help with something.
Edit: Will mark that as Solution for now :smile:
 
Upvote 0
Back
Top Bottom