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.
×
×
  • Create New...