28.11.2010, 14:37
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:
No printing if i press key_walk in veh, but if i press it onfoot, it prints.
If i do this:
It works perfectly, so, where is the problem?
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" );
If i do this:
pawn Код:
if ( PRESSING(newkeys,KEY_LOOK_LEFT) ) print ( "walk" );