KEY_WALK?
#1

Hello,
I was just remaking our engine system to SetVehicleParamsEx you know.
And when i set the engine to off, and a guy enters a vehicle, every key works in OnPlayerKeyStateChange, bus KEY_WALK doesn't work. Just to test I use:
pawn Код:
if ( PRESSING(newkeys,KEY_WALK) ) print ( "walk" );
No printing if i press key_walk in veh, but if i press it onfoot, it prints.

If i do this:
pawn Код:
if ( PRESSING(newkeys,KEY_LOOK_LEFT) ) print ( "walk" );
It works perfectly, so, where is the problem?
Reply
#2

If you press the "KEY_LOOK_LEFT" in-game and on-foot, nothing will happen. Meaning it's disabled. I also encountered this problem while making an adjustment for one of my releases. KEY_LOOK_BEHIND is enabled on-foot though.
Reply
#3

I already made a system, and I used this:

pawn Код:
if(newkeys == 4 || newkeys == 12 || newkeys == 36)
Reply
#4

KEY_WALK and other on foot keys worked when player has been set TogglePlayerControllable to false. You should use some key used in vehicle to start engine etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)