Page 1 of 1

Giving dispensable turret another weapon

Posted: Wed Oct 19, 2011 12:44 pm
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.

Re: Giving dispensable turret another weapon

Posted: Wed Oct 19, 2011 2:59 pm
by DarthD.U.C.K.

Re: Giving dispensable turret another weapon

Posted: Thu Oct 20, 2011 8:40 am
by Executer94
So I have to create a req file for the turret?

Re: Giving dispensable turret another weapon

Posted: Thu Oct 20, 2011 7:27 pm
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.