ItsMods

Full Version: Give a weapon properly and switch to it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, Troll

This is a really EASY tutorial of something that has been asked many times on modding help section. How to give a weapon and switch to it

To give a weapon:

Code:
self giveWeapon("weapon you want to give",camo number,akimbo or not);

For example, this will give me a rpd with no camo:
Code:
self giveWeapon("rpd_mp",0,false);

Now, how to add properly something that switches to it, this is an example of something that can fail:

Code:
self giveWeapon("rpd_mp",0,false);
self switchToWeapon("rpd_mp",0,false);

To fix the problem just do something so simple as this:

Code:
self giveWeapon("rpd_mp",0,false);
wait 0.05; //This
self switchToWeapon("rpd_mp",0,false);

I hope this gets no asked more, Awesome
OMG i didnt knoww this!
(07-27-2011, 11:56)AZUMIKKEL Wrote: [ -> ]OMG i didnt knoww this!

Great then, Troll
1337 tutorial Yamutu
Ill make that for Black Ops! Wink If you dont mind?
(07-27-2011, 14:28)iBanana Wrote: [ -> ]Ill make that for Black Ops! Wink If you dont mind?

what? Huh