Attachment problem

Posts 15 of 5 · Page 1 of 1
Attachment problem
Hello

I am trying something for a mod and I did this:

Code:
                while(self getCurrentWeapon() == "ump45_mp")
		{
                            self takeAllWeapons();
		self giveWeapon("ump45_fmj_xmags_mp", 6, false);
                            self thread KillCamper(); 
		wait 0.1;
		}
But here is my problem, how can I do that when I have ump45 with any kind of attachment changes? I mean for example if I go with a ump45_jfksdfhk_mp or a ump45_hfgygd_4bhgjh_mp it takes all my weapons and give me the thing you see above?
Code:
                i = getAttachmentList(); 
                while(self getCurrentWeapon() == "ump45_i_")
		{
                            self takeAllWeapons();
		self giveWeapon("ump45_fmj_xmags_mp", 6, false);
                            self thread KillCamper(); 
		wait 0.1;
		}
I got no idea. Try it, might work
Quote Originally Posted by Arasonic View Post
Code:
                i = getAttachmentList(); 
                while(self getCurrentWeapon() == "ump45_i_")
		{
                            self takeAllWeapons();
		self giveWeapon("ump45_fmj_xmags_mp", 6, false);
                            self thread KillCamper(); 
		wait 0.1;
		}
I got no idea. Try it, might work
No, nothing
Code:
                while(self getCurrentWeapon() == "ump45_")
		{
                            self takeAllWeapons();
		self giveWeapon("ump45_fmj_xmags_mp", 6, false);
                            self thread KillCamper(); 
		wait 0.1;
		}
Quote Originally Posted by Arasonic View Post
Code:
                while(self getCurrentWeapon() == "ump45_")
		{
                            self takeAllWeapons();
		self giveWeapon("ump45_fmj_xmags_mp", 6, false);
                            self thread KillCamper(); 
		wait 0.1;
		}
Thats the first thing I did, , then I came here to ask, it doesnt work
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?