Page 1 of 1

Unit AI

Posted: 12 Jun 2006, 00:39
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

Posted: 12 Jun 2006, 20:15
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...

Posted: 13 Jun 2006, 08:32
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