07-27-2011, 11:30
Hello,
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:
For example, this will give me a rpd with no camo:
Now, how to add properly something that switches to it, this is an example of something that can fail:
To fix the problem just do something so simple as this:
I hope this gets no asked more,
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,