UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Help Using MakesCents Buildables

broken avatar :(
Created 6 years ago
by conrad.multan
0 Members and 1 Guest are viewing this topic.
1,290 views
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 3 October 2016
Last active: 5 years ago
Posts
28
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Hi There
Signature
HELP ME IM A NOOB
×
conrad.multan's Groups
I wanted to use his buildable to build a weapon in my map but I need some help on where to put my weapon file code into the script for it to work. Please help the link to his craftables is http://ugx-mods.com/forum/index.php/topic,2880.0.html#
Marked as best answer by conrad.multan 6 years ago
broken avatar :(
×
broken avatar :(
Location: deDortmund
Date Registered: 20 December 2015
Last active: 5 months ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter
My Groups
More
Personal Quote
Payback
Signature
Tears Of The Fallen | Join the project https://discord.gg/8gDNQRj
×
fanmagic's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
fanmagic's Contact & Social LinksTears Of The Fallen
Search this function
Code Snippet
Plaintext
GiveCoolWeapon(){
    self.gotcoolgun = true; //you have one, no more for you
    weapons = []; //create array of guns
    weapons[weapons.size] = "ray_gun";
    weapons[weapons.size] = "tesla_gun";
    weapons[weapons.size] = "zombie_mg42";
    weapons[weapons.size] = "zombie_30cal";
    for(i=0;i<weapons.size;i++){
        if(!(self hasweapon(weapons[i]))){//don't give them something they have
            if(!(self hasweapon(weapons[i]+"_upgraded"))){
                if(!(issubstr(weapons[i],"gun"))){ //if not the ray or tesla gun
                    self giveweapon(weapons[i]+"_upgraded"); //upgrade the mg42 and 30call
                    self switchtoweapon(weapons[i]+"_upgraded");
                }else{
                    self giveweapon(weapons[i]);
                    self switchtoweapon(weapons[i]);
                }
                return;
            }
        }
    }
}

and change these lines to the names  of your weapons
Code Snippet
Plaintext
weapons[weapons.size] = "ray_gun";
weapons[weapons.size] = "tesla_gun";
weapons[weapons.size] = "zombie_mg42";
weapons[weapons.size] = "zombie_30cal";
Last Edit: November 03, 2017, 06:31:06 am by fanmagic

 
Loading ...