[SOLVED] How does KeyPress work?
Posted: 18 Jun 2021, 17:40
Im making an script that makes a variable change value when a key is pressed, but when i press it, nothing happens. I already activated the script via events and still nothing.
Code: Select all
if char(1).alive = 1 and keypress(-18) then
if val(Counter) = 5 then
val(Counter) = 4
end if
end if