Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: rulk on Sep 23, 2015, 04:59 PM

Title: keypressing
Post by: rulk on Sep 23, 2015, 04:59 PM
Hya chaps,

How do I detect if the player has pressed the left or right arrow keys ?
Title: Re: keypressing
Post by: . on Sep 23, 2015, 05:18 PM
I suppose you could do that with `onPlayerGameKeysChange (http://forum.vc-mp.org/?topic=212.msg1130#msg1130)(...)`
Title: Re: keypressing
Post by: DizzasTeR on Sep 23, 2015, 05:40 PM
If you want ONLY left or right arrow detection then you need bindkey but if you need Game key which acts at those keys then the above function.

Good luck chap ;)
Title: Re: keypressing
Post by: rulk on Sep 23, 2015, 06:51 PM
perfect, thanks chaps