Could you make a trainer with this CE lua code?
Activates the speedhack while holding down the right mouse button, and deactivates on release.
wantedSpeed=3
lastSpeed=1
function checkKeys(timer)
if isKeyPressed(VK_RBUTTON) then
if lastSpeed==1 then
speedhack_setSpeed(wantedSpeed)
lastSpeed=wantedSpeed
end
else
if lastSpeed~=1 then
speedhack_setSpeed(1)
lastSpeed=1
end
end
end
if t~=nil then
t.destroy()
t=nil
end
t=createTimer()
t.Interval=50
t.OnTimer=checkKeys
t.Enabled=true