Scripting AI sea evacuations

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Scripting AI sea evacuations

Post by Erik2 »

I'm working on a Dunkerque scenarios and am unable to force the AI to embark units onto sea transports and move towards an exit point on a sea hex at map edge.
I've tried both the Exit the Map order and the Move to Hex order (disembark hex at port terrain and target hex at exit location).

Any tips?

Thanks
Erik
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6115
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Scripting AI sea evacuations

Post by terminator »

Hi Erik,
You have the solution in the Dunkirk Scenario :
Evacuations.jpg
Evacuations.jpg (248.63 KiB) Viewed 1185 times
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Scripting AI sea evacuations

Post by Erik2 »

Probably the smart place to look...
Thanks, I'll see if I can get that working.
I'm not at my PC now, but it looks like it is a loop removing one unit and spawning a transport which is moving towards an exit location.
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6115
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Scripting AI sea evacuations

Post by terminator »

Suggestion :
In the Editor, there is a button "Disembark Hex".
If we had a button "Embark Hex", it would be very useful in this case :idea:
Post Reply

Return to “Order of Battle : World War II - Scenario Design”