| View previous topic :: View next topic |
| Author |
Message |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jun 11, 2014 4:48 pm Post subject: Speedhack Custom Value |
|
|
Is there any way to incorporate a custom variable for setSpeed, such as with a symbol? For example...
| Code: | [Enable]
registersymbol(custom_value)
label(custom_value)
custom_value:
dd 0
LUACALL(speedhack_setSpeed(custom_value))
[Disable]
LUACALL(speedhack_setSpeed(1.0))
unregistersymbol(custom_value) |
Thanks.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Wed Jun 11, 2014 4:56 pm Post subject: |
|
|
speedhack_setSpeed(readFloat("symbolname"))
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jun 11, 2014 5:49 pm Post subject: |
|
|
Thanks, Darkbyte. Is there any way to have readFloat run constantly?
Maybe I am doing something wrong, but the only way I can get this to work is by registering the symbol with a separate script, first...setting the value...then enabling the speedhack script. If I edit the custom_value, the only way to get the speedhack script to recognize the new value is by disabling and re-enabling the speedhack script.
Thanks, again.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Wed Jun 11, 2014 6:56 pm Post subject: |
|
|
You can also just do speedhack_setSpeed(value)
That way you don't need to write the value first
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jun 11, 2014 7:07 pm Post subject: |
|
|
| I'd like to set up the speedhack so that the value can be edited on-the-fly, to anything. Is this not possible, or am I overlooking something? To clarify...I'd like users to be able to enter a value in a text box, for example, and apply that value.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Wed Jun 11, 2014 7:33 pm Post subject: |
|
|
Then use a full lua script.
Show the form with the editbox, and when the editbox gets changed, or an button is pressed, call speedhack_setSpeed with the editbox value
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jun 11, 2014 8:17 pm Post subject: |
|
|
Not sure I can get that to work if changing the symbol value and hitting enter doesn't work without re-enabling the speedhack script. Anyway, I know I'm out of my element...was just hoping for an easy solution.
No worries. I appreciate your help.
|
|
| Back to top |
|
 |
|