neutral autoturret??

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
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

neutral autoturret??

Post by Anakin »

Is it possible to change something in an autoturret's odf to make it neutral to the units??

It's because of my shild dispenser. They don't hurt anyone, but the enemy always try to destroy it.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: neutral autoturret??

Post by GAB »

I'm not expert in these kind of things but maybe making the turret belong to a third team that is friendly of everyone could do the trick?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: neutral autoturret??

Post by AQT »

Have you simply tried the ODF parameter

Code: Select all

Team = 0
?
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: neutral autoturret??

Post by Anakin »

does not work :(
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: neutral autoturret??

Post by Teancum »

Try setting it's team to something high, such as 7. Then set team 7 friendly to your units, and your units friendly to team 7
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: neutral autoturret??

Post by Anakin »

Does not work

==EDIT==

just tryed this under protperties
AvailableForAnyTeam = "1"

and this under GameObjectClass
Team = "0"

both made the enterable turret to be neutral, AFTER i enter it the first time. If i do not enter it is not neutral any idea why??

For the autoturret (shield generator) both do not work
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: neutral autoturret??

Post by Locutus »

You could try sth. like this:

Code: Select all

OnCharacterDispensePowerup(
   function(player, powerup)
      if GetEntityClass(powerup) == FindEntityClass("YOUR_TURRET") then
         print("Log info: turret dispensed")
         SetProperty(powerup, "Team", 0)
         SetProperty(powerup, "PerceivedTeam", 0)
      end
   end
)
Post Reply