How do i make turrets target ememy buildings

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

How do i make turrets target ememy buildings

Post by Lorul1 »

Title says it all.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: How do i make turrets target ememy buildings

Post 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.
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: How do i make turrets target ememy buildings

Post 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
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: How do i make turrets target ememy buildings

Post by MileHighGuy »

Is it the republic team number in zeroeditor?
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: How do i make turrets target ememy buildings

Post 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.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: How do i make turrets target ememy buildings

Post by MileHighGuy »

make sure the weapon the turret is using has TargetBuilding = 1 in its odf
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: How do i make turrets target ememy buildings

Post by Lorul1 »

it works !!! Thanks mile high guy :thumbs:
Post Reply