Script Disable Reset
Posted: Mon May 01, 2017 3:41 am
Hi everyone.
I've got a script that edits a game's weapon fire rates. I made it a multiplier where a value of 2 assigned to a symbol to my table means my weapons fire 2 times as fast. I'd like to make it so that when I disable the script, the symbol changes back to the default, a value of 1, without deallocating the memory assigned to it. So essentially when I enable a script, some [testNum] becomes 2, and when i disable the script, the [testNum] becomes 1, and toggles back and forth like that.
I've got a script that edits a game's weapon fire rates. I made it a multiplier where a value of 2 assigned to a symbol to my table means my weapons fire 2 times as fast. I'd like to make it so that when I disable the script, the symbol changes back to the default, a value of 1, without deallocating the memory assigned to it. So essentially when I enable a script, some [testNum] becomes 2, and when i disable the script, the [testNum] becomes 1, and toggles back and forth like that.