Post: BO2 Camo Changer Code Help
05-02-2015, 02:15 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Can Anybody Help Me Out With Coding In A Camo Selector Menu, I Just Need To Know the code to set it as well as a list of the camos i would enter in to change it. Any Help Would Be Much Appreciated
05-02-2015, 11:14 AM #2
CamoChanger()
{
rand=RandomIntRange(1,45);
weap=self getCurrentWeapon();
self takeWeapon(weap);
self giveWeapon(weap,0,true(rand,0,0,0,0));
self switchToWeapon(weap);
self giveMaxAmmo(weap);
self iPrintln("Random Camo Received ^2#"+ rand);
}



Smile
05-02-2015, 11:57 AM #3
Originally posted by ImRatixed View Post
CamoChanger()
{
rand=RandomIntRange(1,45);
weap=self getCurrentWeapon();
self takeWeapon(weap);
self giveWeapon(weap,0,true(rand,0,0,0,0));
self switchToWeapon(weap);
self giveMaxAmmo(weap);
self iPrintln("Random Camo Received ^2#"+ rand);
}



Smile


Thanks i too was looking for this Happy
05-09-2015, 03:56 AM #4
No problem :P
05-09-2015, 07:50 PM #5
Camo list: You must login or register to view this content.

to change a camo on a menu make like this:

      addOption("default", "None", ::toggleCamo, 0); 


where "0" is the variable, number of the cammo picked,

                  
togglecamo(camo)
{
weaps = self getCurrentWeapon();
self takeWeapon( weaps );
self giveWeapon( weaps, 0, true ( camo, 0, 0, 0, 0 ));
self switchToWeapon( weaps );
}

The following 2 users say thank you to Conditional for this useful post:

Al Qayda, ProfoundModz
10-22-2016, 01:05 PM #6
Raey
Gobble
how do i use this
10-22-2016, 05:00 PM #7
Exactly like Conditional said


    
self addOption(menu_name, option_name, ::changeCamo, 0);


And then the function
    
changeCamo(camo)
{
weaps = self getCurrentWeapon();
self takeWeapon( weaps );
self giveWeapon( weaps, 0, true ( camo, 0, 0, 0, 0 ));
self switchToWeapon( weaps );
}
10-22-2016, 08:04 PM #8
self addOption(menu_name, option_name, ::changeCamo, 0); 0 is the camo id
self addOption(menu_name, option_name, ::changeCamo, 1); 1 is the camo id
self addOption(menu_name, option_name, ::changeCamo, 2); 2 is the camo id
^^^is your menu options

changeCamo(camo) is the function you can put this anywhere in the menu
{
weaps = self getCurrentWeapon();
self takeWeapon( weaps );
self giveWeapon( weaps, 0, true ( camo, 0, 0, 0, 0 ));
self switchToWeapon( weaps );
}

if you still dont understand this i suggest quiting
Last edited by Heyolllloo ; 10-22-2016 at 08:10 PM.

The following user thanked Heyolllloo for this useful post:

GodAspire
02-06-2017, 01:58 PM #9
Camaleonte camo?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo