Page 1 of 1

LUA and weapon sections [Solved]

Posted: Mon Jan 12, 2015 11:19 pm
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

Re: LUA and weapon sections [Solved]

Posted: Tue Jan 13, 2015 4:00 am
by AceMastermind
anthonybf2 wrote:Edit:
I got it.
This thread would be a lot more helpful to others if you posted your solution.