• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Give a weapon properly and switch to it
#1
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
  Reply
#2
OMG i didnt knoww this!
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
  Reply
#3
(07-27-2011, 11:56)AZUMIKKEL Wrote: OMG i didnt knoww this!

Great then, Troll
  Reply
#4
1337 tutorial Yamutu
[Image: lQDUjba.jpg]
  Reply
#5
Ill make that for Black Ops! Wink If you dont mind?
  Reply
#6
(07-27-2011, 14:28)iBanana Wrote: Ill make that for Black Ops! Wink If you dont mind?

what? Huh
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [Delete] Properly switching teams TemeraireTeamp 12 6,938 11-16-2013, 11:44
Last Post: TemeraireTeamp
Shocked [Request] Switch plugin axel-le-meilleur 6 4,612 10-19-2013, 06:59
Last Post: iRoNinja
Question Help Mw2 weapon skin question FroxIVx4 1 2,757 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 6,008 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 4,327 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,326 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,368 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,681 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 4,316 04-20-2013, 09:13
Last Post: Dominator56
  [Release] !weapon Plugin 8q4s8 40 23,470 03-24-2013, 17:02
Last Post: X-Track

Forum Jump:


Users browsing this thread: 1 Guest(s)