Page 1 of 1

Making animated vehicles to autoturrets

Posted: Sat Jan 09, 2010 8:32 pm
by Darth_Spiderpig
Hi there, I have a simple question: How do I get my animated gunships to fire on enemies?

I changed the ClassLabel to armedbuilding and wrote under every single weapon section
Pilottype = "self" but they don't fire.

Have I missed something or can't they shoot?

Re: Making animated vehicles to autoturrets

Posted: Sat Jan 09, 2010 9:15 pm
by ThePanda
Can I ask you how you managed to animate the gunship in the first place without making it a prop? It has me stumped, do you need to have every weapon-related odf in your worlds odf folder?

Also, you should check to see if each weapon section has these lines:

Code: Select all

AITargetPerson      = "1"
AITargetAnimal      = "1"
AITargetDroid       = "1"
AITargetVehicle     = "1"
AITargetBuilding    = "1"
I'm sure that they depict what the AI fires at, but I'm not 100% on it.

Re: Making animated vehicles to autoturrets

Posted: Sat Jan 09, 2010 9:26 pm
by Darth_Spiderpig
I changed their classlabel to armedbuilding.


Thanks, I will try that. :thumbs:

Re: Making animated vehicles to autoturrets

Posted: Sat Jan 09, 2010 9:32 pm
by ThePanda
No I mean, did you copy the gunship assets to your world odf folder, or did you place a vehicle spawn and animate that instead?

Also, for the sake of it I think there is a line

Code: Select all

AutoFire = 1
But I'm not sure. It makes the weapons fire without anybody nearby.

Re: Making animated vehicles to autoturrets

Posted: Sat Jan 09, 2010 9:33 pm
by Darth_Spiderpig
ThePanda wrote:No I mean, did you copy the gunship assets to your world odf folder, or did you place a vehicle spawn and animate that instead?
Only the odf and the msh/tgas


Wait a minute, if there are no weaps assets to load, they can't shoot. >.<
Silly me

EDIT: Great, now they are shooting...but not flying anymore...

I changed the classlabel to flyer, now they just hover and shoot. Thy didn't even stop. :lol: