Page 1 of 1

AI Won't use shields [Solved]

Posted: Wed Nov 30, 2011 10:56 pm
by DarthXeon
1 Quick Question: How do you make the ai use the shields?
thanks

Re: Ai Wont Use Shields

Posted: Wed Nov 30, 2011 11:20 pm
by Noobasaurus
If they're secondary they should automatically use them...such as the droideka.

Re: Ai Wont Use Shields

Posted: Thu Dec 01, 2011 12:10 am
by Marth8880
Take a peek at the ODF for the Droideka's shield.

Re: Ai Wont Use Shields

Posted: Thu Dec 01, 2011 2:11 am
by THEWULFMAN
It's been months, but I think I remember solving this issue by changing the unit's healthtype to a droid. Put this in your unit's main ODF.

Code: Select all

HealthType          = "droid"

Re: Ai Wont Use Shields

Posted: Thu Dec 01, 2011 2:41 am
by AQT
That doesn't seem to be the case anymore. I've fixed my solution here.

Re: Ai Wont Use Shields

Posted: Thu Dec 01, 2011 7:08 pm
by DarthXeon
that helps thanks,
btw how do you change max unit count?

Re: Ai Wont Use Shields

Posted: Thu Dec 01, 2011 7:41 pm
by Marth8880

Code: Select all

SetupTeams{
		all = {
			team = ALL,
			units = 20,			-- Determines max unit count
			reinforcements = 150,	-- Determines default ticket count threshold
			soldier	= { "all_inf_rifleman_snow",9, 25}, -- First number determines minimum amount of A.I. to spawn as this unit; second number determines max amount of A.I. for this unit
			assault	= { "all_inf_rocketeer_snow",1,4},
			engineer = { "all_inf_engineer_snow",1,4},
			sniper	= { "all_inf_sniper_snow",1,4},
			officer	= { "all_inf_officer_snow",1,4},
			special	= { "all_inf_wookiee_snow",1,4},

		},
		imp = {
			team = IMP,
			units = 20,
			reinforcements = 150,
			soldier	= { "imp_inf_rifleman_snow",9, 25},
			assault	= { "imp_inf_rocketeer_snow",1,4},
			engineer = { "imp_inf_engineer_snow",1,4},
			sniper	= { "imp_inf_sniper_snow",1,4},
			officer	= { "imp_inf_officer_snow",1,4},
			special	= { "imp_inf_dark_trooper",1,4},
		},
	}
EDIT:

I may be wrong about what the second number does, I can't remember. :?

Re: Ai Wont Use Shields

Posted: Fri Dec 02, 2011 2:05 am
by Webster27
Marth8880 wrote:I may be wrong about what the second number does, I can't remember. :?
Sounds correct to me. :yes:

Re: Ai Wont Use Shields

Posted: Fri Dec 02, 2011 4:39 am
by DarthD.U.C.K.
make sure to also add the enable ubermode line like in this tutorial: Enabling Ubermode (Or: How to have more than 32 AI at once)