I have two cases of attacking bots that could possibly get stuck inside an area where some objectives were enabled before the area gets closed
In other words, for instance on 1944 Overlord, Allied bots can get inside the Bunker on the Beach through the Forward Bunker Doors when the Axis Bunker Wall isn't destroyed yet. But if Axis build these doors, Allies can potentially be "trapped" inside the bunker, and the current goal management simply disables all the Allies goals inside it. There's no nav to leave the area back to the Beach (Axis doors), so Allies inside end up roaming in the second map area...
I could make a nav to jump back to the Beach, but heh, since they're inside, I want them to do the reachable obj, while the ones still in the Beach area do the Beach area goals!
In 2014, palota scripted a little trick for Dingenskirchen using Roles at bot level to make them go to a specific CAPPOINT goal depending on their FLAG goal
This can be done with bot.SetRoles
I'd like to know if it would be a good idea to have something like bot.SetAvailableMapGoal( boolean, goal ); syntax (the bot already has a team, Wiki says TEAM only has AXIS and ALLIES values, not spectator, so perhaps is enough? I usually cycle through BotTable without issue but haven't tested ^^')
In a second time, the scripter would have to add region triggers at the correct spawn locations (in my case, at the Beach spawns), to disable the goal if between the limbo time and respawn the inside goals are still not reachable from there
It's better to do it manually and not always because the availability from the outside of the area can change meanwhile
So, all in all, additionally to the little bot-level script line, for a correct behaviour, it would require an extra step not to be missed in most cases...
It doesn't sound clean, but here I think about spawn management, which has a "similar" concern (http://omni-bot.invi...Changing_spawns)
If this is validated, it could see as well a specific Wiki page and references where applicable
So... Am I thinking too much or does it sound good? ^^'
Or have I missed some way to do it already (aside Role trick)?