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
LUA and weapon sections [Solved]
Moderator: Moderators
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
LUA and weapon sections [Solved]
Last edited by AnthonyBF2 on Tue Jan 13, 2015 4:17 am, edited 1 time in total.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: LUA and weapon sections [Solved]
This thread would be a lot more helpful to others if you posted your solution.anthonybf2 wrote:Edit:
I got it.
