Unit AI

Unit AI

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
MrSpontaneous
Posts: 242
Joined: 09 Sep 2005, 22:39

Unit AI

Post by MrSpontaneous »

Not sure if this is the right place to post it, but it does have to do with AI (although not a sides AI)

I have a unit in mind that has to load up a unit to reload (such as an ammo crate) after X amount of shots (and subsequently destroy the unit to prevent loss of unit limit). I was wondering if it is possible to code a an AI, similar to how metal makes have an AI you can assign them for increased efficiency, so that the unit will automaticaly seek out and load the ammo crate when it needs to "reload"

Thanks
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Yah it's possible, quite easy, though I'm at a los as to how you'd code the reload bit so that it did more than simply load up the ammo transport thing, I guess that'd be a scripting trick...
User avatar
MrSpontaneous
Posts: 242
Joined: 09 Sep 2005, 22:39

Post by MrSpontaneous »

From what I gathered from the mod forums, I will have to tell the loaded unit to watch for when its loaded, and then set its health to zero, or something along those lines.

Thanks for the information
Post Reply

Return to “AI”