Page 1 of 1
AI Recon Droids
Posted: Tue Aug 31, 2010 2:50 pm
by Lagomorphia
For the last hour I've been attempting to make a recon droid that is completely AI controlled; you deploy it and it flies around shooting hostiles without you having to control it, like an autoturret. I've managed to fix a bug with the game still treating it as a remote and thus crashing but now it just hangs in the air waiting to be shot.
If it makes any difference (which I doubt) a hero unit (AQT's Durge) is deploying them.
Also, how do you make the droids follow their deployer? I remember a Kashyyyk map I played once where a commander could deploy four infantry units and they followed him, so it can be done.
Re: AI Recon Droids
Posted: Tue Aug 31, 2010 3:38 pm
by PilotX
Doing something like this involves lua coding. Try this topic
http://www.gametoast.com/forums/viewtop ... 47#p126047
Re: AI Recon Droids
Posted: Tue Aug 31, 2010 3:39 pm
by DarthD.U.C.K.
can you post the odf of your recondroid please?
Re: AI Recon Droids
Posted: Tue Aug 31, 2010 5:00 pm
by Lagomorphia
Sorry, I was going to put that in the first post but forgot.
Droid Dispenser (cis_weap_inf_attackdroid)
Attack Droid (cis_weap_inf_attackdroid_ord)
Re: AI Recon Droids
Posted: Tue Aug 31, 2010 6:11 pm
by sim-al2
You've got three different different "pilottype="s. Try commenting out the second two and try it.
Re: AI Recon Droids
Posted: Wed Sep 01, 2010 4:07 am
by Lagomorphia
According to the thread where I found out about PilotType = Self it has to go under the weaponsections too.
Re: AI Recon Droids
Posted: Wed Sep 01, 2010 5:29 am
by sim-al2
Turret sections do need that for sure, I'm not sure about weapon sections though...

Re: AI Recon Droids
Posted: Wed Sep 01, 2010 1:29 pm
by DarthD.U.C.K.
you only need one pilottype = self" line but that depends on if the droid is a unit or a moving turret/vehicle, if is a turret put it in the turretsection, if its a unit it shouldnt have a turretsection
Re: AI Recon Droids
Posted: Wed Sep 01, 2010 3:33 pm
by Lagomorphia
I'll try using just one, but I think the first poster is probably right...
EDIT: Tried it, no change.
Re: AI Recon Droids
Posted: Wed Sep 01, 2010 7:18 pm
by Battleffront_Conquer
THere is a way to spawn droids that can follow you, using the lua editing pilotx suggested is the only possible way to do this, it will work but you may find that if the droid is still alive you wont be able to spawn another until the original dies, though that might just be a setting that can be modified.
Re: AI Recon Droids
Posted: Fri Sep 03, 2010 11:24 am
by Lagomorphia
I was reading through the script linked to in the first post, and have set up the required local team. However, I have no idea how to use the script. It looks like a simple matter of changing the right parts of the script. I've highlighted the parts I've changed in blue, and the parts I don't if I should change or what to to change to in red.
This is meant to spawn imp_inf_rifleman when imp_inf_stormofficer uses imp_weap_inf_spawntrooper.