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

    • 2nd Platoon Weekly Attendance   Week of 13APR2025   P = Present | E = Excused | A = Absent   Platoon Staff CWO. A. Pitteway - Present 1stSgt. J. Candy -  Excused GySgt. A Yoder -  Present GySgt. R. Fielding - Excused   1st Squad Squad leader:  Cpl. M. Noel - Excused Cpl. B. Grande -  Present Cpl. R. Smith -  Present Cpl. C. Keebler - Excused Pfc. D. Moffat -  Present     2nd Squad Squad leader:  SSgt. S. Holquist - Excused Cpl. T. Scary - Present Cpl. C. Marsh - Present Cpl. W. Swift - -Present Pfc. M. Oake - Excused Pvt. R. Zera - Absent    
    • Name: Ieatalottafood   Steam I.D: STEAM_0:1:513301312   Duration of Ban: Permanent   Reasons for the Ban: tking and dropping N word in server   Demo Provided?: N   Comments: pubber made complaint via discord I witnessed the actions and banned
    • Name: Avid Eater   Steam I.D: STEAM_0:1:190401750   Duration of Ban: Permanent   Reasons for the Ban: Aimbot   Demo Provided?: Y   Comments:   avideater.dem
    • Name: jswagmoney69   Steam I.D: [U:1:211178173]   Duration of Ban: Permanent   Reasons for the Ban: inappropriate comments: "Heil Hitler, n word" couple of times    Demo Provided?: No   Comments: goose was present at the time.
    • Name: ariana grenade   Steam I.D: STEAM_0:0:830419473   Duration of Ban: Permanent   Reasons for the Ban: Team Killing and Wounding   Demo Provided?: Y/N   Comments: 7th ban in 4 months, and this one is outta here.
×
×
  • Create New...