SA-MP Forums Archive
KEY_WALK? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: KEY_WALK? (/showthread.php?tid=194090)



KEY_WALK? - kLx - 28.11.2010

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?


Re: KEY_WALK? - Hiddos - 28.11.2010

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.


Re: KEY_WALK? - The_Moddler - 28.11.2010

I already made a system, and I used this:

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



Re: KEY_WALK? - niCe - 28.11.2010

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.