Mshraks How do I cheat?
Reputation: 0
Joined: 02 Nov 2019 Posts: 8
|
Posted: Sun Nov 03, 2019 12:37 pm Post subject: Assist with a Hotkey and function |
|
|
Dark Byte wrote: | give two script entries in the addresslist the same hotkey
one activates, the other deacticates
set the deactivate script to async mode
and add this to the deactivate script
Code: |
{$lua}
sleep(100)
{$asm}
|
this way the deactivate script will wait 300 milliseconds before deacticating
alternatively, you could use a more complex aa script that calls getasynckeystate and use gettickcount to determine when to disable |
How and were do i have to do this?
Im a noob on coding.
Only what i know is binding 2 hotkeys to 2 different fuctions.
Activate and diactivate.
Were do i have to add the scripts Numpad 1 to activate and Numpad 2 deactivate function?
Actually i only want to have one function with hotkey Numpad 1 that activate the function but goes back to the original funtion after 3-5 seconds.
Than i have to press that 1 hotkey Numpad again if i need it.
This is a part of the lua script:
<CheatEntries>
<CheatEntry>
<ID>37</ID>
<Description>"Set Grip Multiplier [Player]"</Description>
<DropDownList DisplayValueAsItem="1">0:No Grip
0:No Grip
0.25:25% Grip
0.5:50% Grip
0.75:75% Grip
1:Normal Grip
1.25:125% Grip
1.5:150% Grip
1.75:175% Grip
2:200% Grip
</DropDownList>
<Color>FF0000</Color>
<VariableType>Float</VariableType>
<Address>GripRate</Address>
</CheatEntry>
<CheatEntry>
<ID>38</ID>
<Description>"Set Grip Multiplier [Computer]"</Description>
<DropDownList DisplayValueAsItem="1">0:No Grip
0:No Grip
0.25:25% Grip
0.5:50% Grip
0.75:75% Grip
1:Normal Grip
1.25:125% Grip
1.5:150% Grip
1.75:175% Grip
2:200% Grip
</DropDownList>
Description: |
|
Filesize: |
7.9 KB |
Viewed: |
4878 Time(s) |

|
|
|