Turrets targeting only close enemies? [Solved]

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
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Turrets targeting only close enemies? [Solved]

Post by CressAlbane »

I want my turret, tur_bldg_chaingun_tripod, to only shoot at enemies that are nearby.
I know basically how to do this for an AI, but how can I have this happen to turrets?
Last edited by CressAlbane on Mon Jan 03, 2011 4:18 pm, edited 1 time in total.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Turrets targeting only close enemies?

Post by bobfinkl »

Open up the weapon .odf file your turret uses and edit the same properties you normally would for normal AI. Unless it doesn't use a seperate weapon .odf in that case just add the same properties that change the range the AI shoot at from any other weapon .odf file and edit them accordingly.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Turrets targeting only close enemies?

Post by CressAlbane »

Thanks, I just did that and it worked.
Post Reply