Page 1 of 1

How do i make turrets target ememy buildings

Posted: Tue Aug 11, 2015 5:03 pm
by Lorul1
Title says it all.

Re: How do i make turrets target ememy buildings

Posted: Tue Aug 11, 2015 5:38 pm
by MileHighGuy
I havent tested it but I assume all you have to do is give them a health bar (make them a classlabel that allows it) and put them on the enemy team.

Re: How do i make turrets target ememy buildings

Posted: Tue Aug 11, 2015 6:23 pm
by Lorul1
Well I have a normal stock cis auto space turret (the ones you would see on a cis frigate) I want those turrets to shoot at a stock republic "minirepassaultship" (frigate)
The frigates class is destructablebuilding
And It has health
It is the normal stock frigate - nothing changed on it , and I want a Droid auto turret to fire on it

Re: How do i make turrets target ememy buildings

Posted: Tue Aug 11, 2015 6:39 pm
by MileHighGuy
Is it the republic team number in zeroeditor?

Re: How do i make turrets target ememy buildings

Posted: Tue Aug 11, 2015 8:41 pm
by Lorul1
No, its team 2 (the cis) and the frigate is team 1, it shoots at enemy ships but when there are no ships around or I use the fake console to kill them all it doesn't target enemy frigates with in range of it.

Re: How do i make turrets target ememy buildings

Posted: Tue Aug 11, 2015 9:10 pm
by MileHighGuy
make sure the weapon the turret is using has TargetBuilding = 1 in its odf

Re: How do i make turrets target ememy buildings

Posted: Tue Aug 11, 2015 11:19 pm
by Lorul1
it works !!! Thanks mile high guy :thumbs: