Difference between revisions of "Lua:speedhack setSpeed"
Jump to navigation
Jump to search
(For quite some games speedhack_setSpeed(1) and getMainForm().cbSpeedhack.Checked=false are different results. The latter works for all games in my experience.) |
|||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
Example: | Example: | ||
− | speedhack_setSpeed(5) | + | speedhack_setSpeed(5) --5 times the normal speed |
− | speedhack_setSpeed(0.5) --Half the normal speed | + | speedhack_setSpeed(0.5) --Half the normal speed |
− | speedhack_setSpeed(1) | + | speedhack_setSpeed(1) --Normal speed |
− | + | getMainForm().cbSpeedhack.Checked=false --disables speedhack and unchecks the "Enable Speedhack" | |
===Function Parameters=== | ===Function Parameters=== |
Latest revision as of 13:35, 30 December 2023
function speedhack_setSpeed(speed)
Enabled the speedhack if it wasn't active yet and sets the required speed.
Example:
speedhack_setSpeed(5) --5 times the normal speed speedhack_setSpeed(0.5) --Half the normal speed speedhack_setSpeed(1) --Normal speed getMainForm().cbSpeedhack.Checked=false --disables speedhack and unchecks the "Enable Speedhack"
Function Parameters[edit]
Parameter | Type | Description |
---|---|---|
speed | float | The speed to set |
See also[edit]