Hey,
i just started trying to mod dayz a lil bit and already ran into my first problem, i cant wrap my head around why it wont work.
Its about the OnKeyPress() function that just doesnt seem to get called properly.
First i thought it might be a problem with getting the right player. So i tried just setting the WorldDate. Then i tried with "key != KC_K" so it should be called with every key press. Then i tried putting my functions right behind super.OnKeyPress(), so it should not matter which key i press at all but it doesnt run either.
It is getting compiled without error.
The Function:
Full Code