Dark Byte Site Admin
Reputation: 468 Joined: 09 May 2003 Posts: 25712 Location: The netherlands
|
Posted: Sat Feb 12, 2022 9:11 am Post subject: |
|
|
If keypress works then it's simple
your luacode is likely in the same thread that handles keypresses, but doKeyPress releases the key before it continues, so when your luacode returns the keys are up, so the game doesn't see it
use keyDown and keyUp
Code: |
{$luacode}
if shouldpresskey then
keyDown(69)
keyDown(22531)
else
keyUp(22531)
keyUp(69)
end
{$asm}
|
_________________ 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
|
|