LUA and weapon sections [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
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

LUA and weapon sections [Solved]

Post by AnthonyBF2 »

I can change guns easy using;
SetClassProperty("unit name", "WeaponName", "gun name")

But that only controls primary. I need to know how to change secondary-primary and secondary weapon slots.

Thanks.

Edit:
I got it.

Edit:
Ok Ace;
Fix:
SetClassProperty("unit name", "WeaponName2", "gun name") -- secondary primary (pisols, fusion cutter)
SetClassProperty("unit name", "WeaponName3", "gun name") -- mines, detpacks, grenades
SetClassProperty("unit name", "WeaponName4", "gun name") -- mines, detpacks, grenades
Last edited by AnthonyBF2 on Tue Jan 13, 2015 4:17 am, edited 1 time in total.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: LUA and weapon sections [Solved]

Post by AceMastermind »

anthonybf2 wrote:Edit:
I got it.
This thread would be a lot more helpful to others if you posted your solution.
Post Reply