blacklambCZ Posted June 5, 2021 Share Posted June 5, 2021 Hello, How can i make AI better with Building Capture? When AI Captures Building, it automatically sells it. How can i make it so that it doesnt sell the building, and use it. (same if it mind controls building) Link to comment Share on other sites More sharing options...
McPwny Posted June 7, 2021 Share Posted June 7, 2021 for some reason, the ai sells anything that doesnt have the tag "needsengineer=yes" when it captures it with an engineer. you can make the AI actually use the building by writing AI triggers for it telling it to, but by default the AI has no extra triggers telling it to do that. you can actually write AI triggers into a map and also .ini edit the map to give all buildings "needsengineer=yes" and then on top of that use some AI triggers explicitly telling the AI to capture enemy buildings effectively giving you what you want, but doing so would take a few hours at least assuming that you already know AI and map INI editing. i once made a heavily scripted map that had an AI that does exactly that. if you want to play it, or just poke at it in FA2, you can find it here: 1 Link to comment Share on other sites More sharing options...
Concolor1 Posted June 7, 2021 Share Posted June 7, 2021 (edited) Just to add to this, we found in single player maps that the AI would 'not', sell captured buildings. However it can be faked, with a 'Fire Sale', script action. The downside being that that particular house sells everything it owns. So I rigged it so if I want the Engineer to sell a captured building, it must be the only unit on the map belonging to 'that house', at the time. 'That house', is of course allied and the same colour as the AI house thus making it look indistinguishable. I ought to just add that the script I used only worked if its simply 0 - Attack Buildings, 1- Fire Sale, 2 - Success. Edited June 7, 2021 by Concolor1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now