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
How to make a Dvar for Black Ops 2?
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="bubblewrap" data-source="post: 59039" data-attributes="member: 443744"><p>Hi thanks for the response</p><p></p><p>I tried</p><p></p><p>[CODE]init()</p><p>{ </p><p> SetDvar("bot_difficulty", 0);</p><p> Print("hello");</p><p>}[/CODE]</p><p></p><p>but it did not change the bot_difficulty setting.</p><p></p><p>To clarify, I also ran the following code:</p><p></p><p>[CODE]beginVal = getDvar( "bot_difficulty" ); </p><p>Print ("beginVal " + beginVal);</p><p></p><p>setDvar( "bot_difficulty", 3 );</p><p></p><p>afterVal = getDvar( "bot_difficulty" );</p><p>Print ("afterVal " + afterVal);[/CODE]</p><p></p><p>The output printed indicated that the dvar HAD been changed to 3. However, when I checked the dvar by opening the console and typing bot_difficulty, it indicated that bot_difficulty was still set to 1.</p><p></p><p>So I don't know what is going on, the gsc thinks the dvar is getting changed, but the console doesn't think so</p><p></p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="bubblewrap, post: 59039, member: 443744"] Hi thanks for the response I tried [CODE]init() { SetDvar("bot_difficulty", 0); Print("hello"); }[/CODE] but it did not change the bot_difficulty setting. To clarify, I also ran the following code: [CODE]beginVal = getDvar( "bot_difficulty" ); Print ("beginVal " + beginVal); setDvar( "bot_difficulty", 3 ); afterVal = getDvar( "bot_difficulty" ); Print ("afterVal " + afterVal);[/CODE] The output printed indicated that the dvar HAD been changed to 3. However, when I checked the dvar by opening the console and typing bot_difficulty, it indicated that bot_difficulty was still set to 1. So I don't know what is going on, the gsc thinks the dvar is getting changed, but the console doesn't think so Thanks [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
How to make a Dvar for Black Ops 2?
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