Giving dispensable turret another weapon

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
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Giving dispensable turret another weapon

Post by Executer94 »

I am having trouble by giving my dispensable turret an other weapon. I changed the weapon but ingame it didn't change. I ran the search function on GT but the only thing I found that I have to change the last loaded weapon? I don't get it.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Giving dispensable turret another weapon

Post by DarthD.U.C.K. »

Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Giving dispensable turret another weapon

Post by Executer94 »

So I have to create a req file for the turret?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Giving dispensable turret another weapon

Post by Fiodis »

Yes; and you have to do everything else in Sky's post, reproduced here in stunning 2D:
Sky_216 wrote:Sorry for bump if this is unnecessary, but thought I'd mention this....
•Every dispensable turret on the map uses the same weapon as the last loaded dispensable turret in the Lua.
...has quite a few simple work arounds. The one I'm using atm is having a side that loads all the dispensable turrets as classes (through req files), loading that side in the lua before the other sides, and having the various dispenser weapons dispense those (already loaded in the lua) turrets (eg shield generator, gun turret, bacta dispenser, missile turret etc).
You need to have a seperate side for the turrets, load them in the LUA before all the other sides, then have your weapons (which are not in the turret side) dispense those.
Post Reply