I use triggers to create 4 marines in each bunker in the map. I also set the bunkers such that the AI will always rebuild them (bullies). It works fine but the problem is that whenever a bunker is rebuilt, the AI won't build marines to fill it up. How do i fix this?
Don't use a trigger to create marines for the AI. Instead, manually place marines around your bunkers. The AI will automatically send those marines into the bunkers and rebuild them if they're lost. I'm assuming you're talking about the campaign AI. The melee AI will just attack with them.
Don't use a trigger to create marines for the AI. Instead, manually place marines around your bunkers. The AI will automatically send those marines into the bunkers and rebuild them if they're lost. I'm assuming you're talking about the campaign AI. The melee AI will just attack with them.
That's an option, but the problem is that near the bunkers there aren't just marines, there are other stuff such as marauders as well, and i only want the AI to load the marines into the bunker. If there was a pure trigger solution it would be fantastic.
If you never want marauders to be loaded into bunkers then you could add a "not marauder" validator to the bunker's load ability. I don't think that there is a trigger-only solution.
1) Define the behavior of the bunker in a function. See other tactical AI functions. You basically want it to poll all marines within a certain range of the unit that belong to that player, and apply any criteria you want (are they in a wave, are they attacking, is the bunker full, etc.) and if things pass, order them to the bunker.
2) At run time, assign this function as the tactical AI function to the bunker unit type.
Now, you will want to make sure to only grab idle marines, so that multiple bunkers don't issue overlapping orders to the same marines.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I use triggers to create 4 marines in each bunker in the map. I also set the bunkers such that the AI will always rebuild them (bullies). It works fine but the problem is that whenever a bunker is rebuilt, the AI won't build marines to fill it up. How do i fix this?
Don't use a trigger to create marines for the AI. Instead, manually place marines around your bunkers. The AI will automatically send those marines into the bunkers and rebuild them if they're lost. I'm assuming you're talking about the campaign AI. The melee AI will just attack with them.
That's an option, but the problem is that near the bunkers there aren't just marines, there are other stuff such as marauders as well, and i only want the AI to load the marines into the bunker. If there was a pure trigger solution it would be fantastic.
If you never want marauders to be loaded into bunkers then you could add a "not marauder" validator to the bunker's load ability. I don't think that there is a trigger-only solution.
I'm not sure how well it works, but in the action "set difficulty parameter", there's an option for autoloading bunkers. Maybe it'll help.
Is there any way using pure triggers (without modifying terrain and data) to achieve this?
bump
Manually issue order to bunker to rebuild marines.
http://www.youtube.com/user/RussianMapster
You will need two things
1) Define the behavior of the bunker in a function. See other tactical AI functions. You basically want it to poll all marines within a certain range of the unit that belong to that player, and apply any criteria you want (are they in a wave, are they attacking, is the bunker full, etc.) and if things pass, order them to the bunker.
2) At run time, assign this function as the tactical AI function to the bunker unit type.
Now, you will want to make sure to only grab idle marines, so that multiple bunkers don't issue overlapping orders to the same marines.