CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Bo2 How to change Model | How to give yourself Weapons via GSC
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CabCon" data-source="post: 9540" data-attributes="member: 1"><p>Ok so:</p><p>First of all let's build a function to give yourself weapons:</p><p>[CODE]giveWeapon()</p><p>{</p><p>self giveWeapon("TEST_WEAPONNAME");</p><p>}[/CODE]</p><p><strong>self </strong>- definite that you give the weapon yourself</p><p><strong>TEST_WEAPONNAME </strong>- There you can place a weapon name. You will get this weapon!</p><p></p><p>So the next step it to chose a weapon, you can find the weapons names here:</p><p><strong>Weapon List</strong></p><p><a href="http://pastebin.com/wEq07Yzw" target="_blank">Multiplayer</a></p><p><a href="http://pastebin.com/aKBQg9RJ" target="_blank">Zombies</a></p><p></p><p>So let's pick a random multiplayer weapon:</p><p><strong>an94_mp</strong></p><p>So now we need to replace <strong>TEST_WEAPONNAME </strong>with <strong>an94_mp! </strong>It will look like this:</p><p>[CODE]giveWeapon()</p><p>{</p><p>self giveWeapon("an94_mp");</p><p>}[/CODE]</p><p>So you will get the weapon after you call giveWeapon();</p><p>You can't use zombie weapons on Multiplayer.</p><p></p><p>Also to optimize your weapon function I recommend to do that:</p><p>[CODE]giveWeapon()</p><p>{</p><p>self TakeWeapon( self getcurrentweapon() ); //Will take one weapon! Same like you pick up a dropped weapon.</p><p>self giveWeapon("an94_mp"); //Will give yourself the new weapon</p><p>self switchtoweapon("an94_mp"); //Will swtich to the new weapon</p><p>}[/CODE]</p><p></p><p>Also you can use Inputs:</p><p>[CODE]giveWeapon(input)</p><p>{</p><p>self TakeWeapon( self getcurrentweapon() );</p><p>self giveWeapon(input);</p><p>self switchtoweapon(input);</p><p>}[/CODE]</p><p>So now you can call:</p><p>self giveWeapon("an94_mp"); //To give the AN94!</p><p>self giveWeapon("mp7_mp"); //To give the MP7!</p><p></p><p>This makes it possible to give you any weapon with a input with only one function!</p><p></p><p>I hope this helped you a little bit! Have a nice evening!</p><p>Your CabCon!</p></blockquote><p></p>
[QUOTE="CabCon, post: 9540, member: 1"] Ok so: First of all let's build a function to give yourself weapons: [CODE]giveWeapon() { self giveWeapon("TEST_WEAPONNAME"); }[/CODE] [B]self [/B]- definite that you give the weapon yourself [B]TEST_WEAPONNAME [/B]- There you can place a weapon name. You will get this weapon! So the next step it to chose a weapon, you can find the weapons names here: [B]Weapon List[/B] [URL='http://pastebin.com/wEq07Yzw']Multiplayer[/URL] [URL='http://pastebin.com/aKBQg9RJ']Zombies[/URL] So let's pick a random multiplayer weapon: [B]an94_mp[/B] So now we need to replace [B]TEST_WEAPONNAME [/B]with [B]an94_mp! [/B]It will look like this: [CODE]giveWeapon() { self giveWeapon("an94_mp"); }[/CODE] So you will get the weapon after you call giveWeapon(); You can't use zombie weapons on Multiplayer. Also to optimize your weapon function I recommend to do that: [CODE]giveWeapon() { self TakeWeapon( self getcurrentweapon() ); //Will take one weapon! Same like you pick up a dropped weapon. self giveWeapon("an94_mp"); //Will give yourself the new weapon self switchtoweapon("an94_mp"); //Will swtich to the new weapon }[/CODE] Also you can use Inputs: [CODE]giveWeapon(input) { self TakeWeapon( self getcurrentweapon() ); self giveWeapon(input); self switchtoweapon(input); }[/CODE] So now you can call: self giveWeapon("an94_mp"); //To give the AN94! self giveWeapon("mp7_mp"); //To give the MP7! This makes it possible to give you any weapon with a input with only one function! I hope this helped you a little bit! Have a nice evening! Your CabCon! [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Bo2 How to change Model | How to give yourself Weapons via GSC
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top