Posted: Sun Dec 02, 2018 2:32 pm Post subject:
AI not sending transports after loading
It works fine until the AI actually has to send the (Amphibious) transports trigger, team, & taskforce are all working perfectly fine but I'm having trouble actually getting the loaded transport to an enemy base
Sometimes the AI actually just refuses to load the damn thing
I've tried gather at enemy base instead of move to enemy structure but same results
Maybe the AI has trouble with transports & tanks because they get stuck idk
Here's the script code
Spoiler (click here to read it):
Code:
[0A7E6DBC-G]
Name=General Amphibious Assault vs Allies
0=54,0 ;Regroup at Friendly Base
1=14,0 ;Load onto Transport
2=43,0 ;Wait until fully loaded
3=47,0 ;Move to Enemy Structure (GAPOWR)
4=8,2 ;Unload
5=49,0 ;Repeat until success
6=0,1 ;Attack anything
The transport capacity and the number of passengers in the team should match exactly. If there are less passengers, the load won't complete. If the loading of passengers is interrupted by attack etc., then also the load won't complete.
If the enemy doesn't have structure given in Move to enemy structure (47,n) then the team won't have a target to move to. QUICK_EDIT
01000005-G=Allied Ampbihious Assault vs Allies,01000000-G,<all>,7,0,GAYARD,0100000003000000000000000000000000000000000000000000000000000000,100.000000,80.000000,200.000000,1,0,1,0,<none>,0,1,1
As a rule I put transports first, and AICHECK assumes the first one is a transport for the purposes of counting capacity, so if you are loading IFV into LCRF it won't attempt to count both.
As for the script, 6=49,0 is unnecessary since the transport succeeded in all the ways except find the building. I would also recommend adding more attacks at the end, or a guard/hunt mission. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
^ that seems to be the case, I tested to see if a 4 passenger transport with 1 slot tanks fixed the problem, and it did. I really don't wanna create duplicate units for the ai so any workaround on this?
I'll try repeating load to transport and remove waiting for it to get filled up
BTW even though if the transport is at 0= it still didn't work
EDIT: IT WORKS NOW! And I have yet to see a unit get left behind thanks for everyone who responded!
Here's the code if your curious or somethin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum