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 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
Need a simple script to run different commands by pressing button combos
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="SCP" data-source="post: 15246" data-attributes="member: 25893"><p>Here you go:</p><p>First of all take a look into the <strong>Startup tutorial by CabCon</strong>, which shows you <strong>how to create a mod for black ops 3</strong> (<a href="https://cabconmodding.com/threads/black-ops-3-multiplayer-gsc-modding-how-to-start-coding-a-mod-startup-mod-download.1330/" target="_blank">Tutorial - Black Ops 3 Multiplayer GSC Modding - How to start coding a mod? Startup Mod +Download | CabConModding</a> ). After that use this code instead of the code of the 'example' from the tutorial. This code will run a script which will call everytime you press aim + any ad button a function. Replace <strong>TEST_FUNCTION</strong> with your function, you like to call. You can find all requested function in our managed thread list, I recommend to you to take a look inside of it: <a href="https://cabconmodding.com/threads/black-ops-3-gsc-managed-code-list.31/" target="_blank">GSC - Black Ops 3 GSC Managed Code List | CabConModding</a></p><p></p><p>Thank you, if you have any other question don't hesitat to ask!</p><p></p><p>Here is the code:</p><p>[CODE]/*</p><p>Check out cabconmodding.com!</p><p>*/</p><p></p><p>#using scripts\codescripts\struct;</p><p></p><p>#using scripts\shared\callbacks_shared;</p><p>#using scripts\shared\system_shared;</p><p></p><p>#insert scripts\shared\shared.gsh;</p><p></p><p>#namespace clientids;</p><p></p><p>REGISTER_SYSTEM( "clientids", &__init__, undefined )</p><p> </p><p>function __init__()</p><p>{</p><p> callback::on_start_gametype( &init );</p><p> callback::on_connect( &on_player_connect );</p><p> callback::on_spawned( &on_player_spawned );</p><p>}</p><p></p><p>function init()</p><p>{</p><p> level.clientid = 0;</p><p>}</p><p></p><p>function on_player_connect()</p><p>{</p><p> self.clientid = matchRecordNewPlayer( self );</p><p> if ( !isdefined( self.clientid ) || self.clientid == -1 )</p><p> {</p><p> self.clientid = level.clientid;</p><p> level.clientid++;</p><p> }</p><p></p><p>}</p><p></p><p>function on_player_spawned()</p><p>{</p><p> if(!isdefined(self.shortcutSystem))</p><p> {</p><p> self.shortcutSystem = true;</p><p> self IPrintLn("ShortCut System!");</p><p> self func_shortCuts();</p><p> }</p><p>}</p><p></p><p></p><p>function func_shortCuts()</p><p>{</p><p> while(self.shortcutSystem)</p><p> {</p><p> if(self AdsButtonPressed())</p><p> {</p><p> if(self ActionSlotOneButtonPressed())</p><p> {</p><p> self thread TEST_FUNCTION();</p><p> wait .1;</p><p> }</p><p> if(self ActionSlotTwoButtonPressed())</p><p> {</p><p> self thread TEST_FUNCTION();</p><p> wait .1;</p><p> }</p><p> if(self ActionSlotThreeButtonPressed())</p><p> {</p><p> self thread TEST_FUNCTION();</p><p> wait .1;</p><p> }</p><p> if(self ActionSlotFourButtonPressed())</p><p> {</p><p> self thread TEST_FUNCTION();</p><p> wait .1; </p><p> }</p><p> }</p><p> wait .0025;</p><p> }</p><p>}[/CODE]</p><p></p><p>Regards,</p><p>CabCon.</p></blockquote><p></p>
[QUOTE="SCP, post: 15246, member: 25893"] Here you go: First of all take a look into the [B]Startup tutorial by CabCon[/B], which shows you [B]how to create a mod for black ops 3[/B] ([URL='https://cabconmodding.com/threads/black-ops-3-multiplayer-gsc-modding-how-to-start-coding-a-mod-startup-mod-download.1330/']Tutorial - Black Ops 3 Multiplayer GSC Modding - How to start coding a mod? Startup Mod +Download | CabConModding[/URL] ). After that use this code instead of the code of the 'example' from the tutorial. This code will run a script which will call everytime you press aim + any ad button a function. Replace [B]TEST_FUNCTION[/B] with your function, you like to call. You can find all requested function in our managed thread list, I recommend to you to take a look inside of it: [URL='https://cabconmodding.com/threads/black-ops-3-gsc-managed-code-list.31/']GSC - Black Ops 3 GSC Managed Code List | CabConModding[/URL] Thank you, if you have any other question don't hesitat to ask! Here is the code: [CODE]/* Check out cabconmodding.com! */ #using scripts\codescripts\struct; #using scripts\shared\callbacks_shared; #using scripts\shared\system_shared; #insert scripts\shared\shared.gsh; #namespace clientids; REGISTER_SYSTEM( "clientids", &__init__, undefined ) function __init__() { callback::on_start_gametype( &init ); callback::on_connect( &on_player_connect ); callback::on_spawned( &on_player_spawned ); } function init() { level.clientid = 0; } function on_player_connect() { self.clientid = matchRecordNewPlayer( self ); if ( !isdefined( self.clientid ) || self.clientid == -1 ) { self.clientid = level.clientid; level.clientid++; } } function on_player_spawned() { if(!isdefined(self.shortcutSystem)) { self.shortcutSystem = true; self IPrintLn("ShortCut System!"); self func_shortCuts(); } } function func_shortCuts() { while(self.shortcutSystem) { if(self AdsButtonPressed()) { if(self ActionSlotOneButtonPressed()) { self thread TEST_FUNCTION(); wait .1; } if(self ActionSlotTwoButtonPressed()) { self thread TEST_FUNCTION(); wait .1; } if(self ActionSlotThreeButtonPressed()) { self thread TEST_FUNCTION(); wait .1; } if(self ActionSlotFourButtonPressed()) { self thread TEST_FUNCTION(); wait .1; } } wait .0025; } }[/CODE] Regards, CabCon. [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
Need a simple script to run different commands by pressing button combos
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