Results 1 to 5 of 5
  1. #1
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed

    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?

  2. #2
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    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

  3. #3
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    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

  4. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Code:
                    while(self getCurrentWeapon() == "ump45_")
    		{
                                self takeAllWeapons();
    		self giveWeapon("ump45_fmj_xmags_mp", 6, false);
                                self thread KillCamper(); 
    		wait 0.1;
    		}

  5. #5
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    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