Jump to content
  • 0

Resolved - i need some help on enabling, disabling a script


Question

Posted (edited)

Name: C. Norris

Rank: Sgt.

Type of issue: (Software/ Steam)

Brief Description of Issue: i been working on a script but i cant figure out how to enable it and disable it, any one have the exact ways to do it? what i tried didn't work. :angry:

***Medical Supply Staff ONLY Below this line***

Current Status: Resolved

Researching

Pending Reply

Resolved

Unresolved

Main Technician:

Supporting Technician: J. Candy

Edited by Candy 1st MRB

5 answers to this question

Recommended Posts

  • 0
Posted

I'm not entirely sure what you mean by enabling and disabling a script. If you want to change settings and then change them back, you could make two files, that that has the "on" settings and one with the "off" settings. disabling a setting doesn't really mean anything to me. Here's a sample that would switch your mouse sensitivity between 12 and 2. all the files go in your dods/cfg folder.

on.cfg

sensitivity 12

off.cfg

sensitivity 2

in your autoexec.cfg you would add 1 of the following options

on and off buttons

// k to enable, j to disable
bind "k" "exec on.cfg"
bind "j" "exec off.cfg"

you can also have 1 button toggle

// k to toggle
bind "k" "cfgon"
alias "cfgon" "exec on.cfg;bind k cfgoff"
alias "cfgoff" "exec off.cfg bind k cfgon"

or you can hold a button

// hold k
bind k "+cfghold"
alias "+cfghold" "exec on.cfg"
alias "-cfghold" "exec off.cfg"

I haven't tested any of these, but they should work.

  • 0
Posted

yea lol im still working on it, what laffy msg'd me dont seem to work or im jsut to old and none script enough to get it, but what laffy put up was good stuff :)

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Recent Posts

    • Its Friday Night Fight Night in HLL and me and Muthas are in different squads. We meet up while attacking a point: Me: Muthas! Let's go get the poiple toineps! Muthas: Hah poi....   We are immediately cut down by a MG.   Steam messages:  Muthas: LMFAOO Me:OMFG! ROFLMAO!
    • Name: elon musk   Steam I.D: STEAM_0:0:918906720   Duration of Ban: Permanent   Reasons for the Ban: Racist comments and Mass Team Killing   Demo Provided?: N   Comments: Keebler reported in public chat, sent screen shot of typed comments  
    • Hey Reis! Great to see you again, man. The unit means a lot to all of us and I know you were here for quite some time. There’s always room for you to come back   *Salute*
    • I dont know how many of the people that know me or what i did in the unit are still here. But i just wanted to leave a huge thank you on the forums to this unit, that i was a part of for so many years, and all the good times and hardships i shared with a lot of different people from all over the world.    Maybe i'll still see you in DoD:s   *Salute*
    • 2nd Platoon Weekly Attendance   Week of 10NOV2024   P = Present | E = Excused | A = Absent   Platoon Staff WO. A. Pitteway - Excused MSgt. J. Candy - Present TSgt. A Yoder - Present   1st Squad Squad leader:  SSgt. R. Fielding - Present Cpl. B. Grande - Present Pfc. R. Smith - Excused Pfc. M. Noel - Present Pfc. C. Keebler - Present Pvt. D. Moffat - Present Pvt. R. Zera - Absent Pvt. N. Clement - Excused       2nd Squad Squad leader:  Cpl. S. Holquist - Present Pfc. A. Cannon - Excused Pfc. T. Scary - Present Pfc. C. Marsh - Present Pfc. M. Oake - Excused Pvt. L. Whistle - Present Pvt. M. Clarkson - Excused Pvt. W. Swift - Present           Helpers: WO. S. Belcher
×
×
  • Create New...