ItsMods

Full Version: Client.Other.SecondaryWeapon Bug?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I set the server classes with only a simple gun as secondary weapon.
I set no primary weapon and i set a trowingknife to those classes.

When i use this code to change the weapon, (primary, secondary and current do the same result) it didn't change the weapon but it take off the throwingknife...
Code:
// Client.Other.PrimaryWeapon = GetWeapon("iw5_m4");
Client.Other.SecondaryWeapon = GetWeapon("iw5_m4");
// Client.Other.CurrentWeapon = GetWeapon("iw5_m4");

I did something wrong with Client.Other.PrimaryWeapon, and the 2 others functions or there is a bug?

Thank you in advance for you help!
All multiplayer weapons have the suffix _mp. Look here for weapon names (thanks to the awesome @Yamato)
http://www.itsmods.com/forum/Thread-Tuto...ments.html
He also states there
Quote:You need to add on weapons: _mp at the end.
Thank you for your answer! And thank you @Yamato for the tutorial Wink