Team value for gun ships

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
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Team value for gun ships

Post by AnthonyBF2 »

I want to make gunships be neutral when not used, but I can't do it. I don't understand where they are getting their Team value. Same applies for command walkers but that's not as important.
ZoomV
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 308
Joined: Thu Aug 15, 2013 11:27 am
Projects :: Old Republic Map pack
Games I'm Playing :: BF2 SWTOR and GW2
xbox live or psn: No gamertag set
Location: Belsavis, Maximum Security Ward

Re: Team value for gun ships

Post by ZoomV »

Which gunship ODF are you looking at? Rep_fly_gunship is flyer class and shouldn't have a team value. Rep_fly_gunship_sc is a commandflyer and will always have a team value since its a command post.
hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Team value for gun ships

Post by hunpeter12 »

Maybe with some LUA coding you could check if there's anybody in it, and if not make it neutral? And then change it to either team 1 or 2 depending on which team owns it. I'm not sure if you're able to check one exact vehicle, but if there's only one of that vehicle class, it might be possible.
Post Reply