GetPlayerKeys

From NPC for VCMP 0.4 Servers
Revision as of 15:38, 24 March 2022 by Habi (talk | contribs) (Created page with "{{Welcome| desc=Gets the keys pressed down by the specified player, who is streamed in.| params=<source lang="lua">playerid</source> <poem>::playerid : The ID of the player wh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Gets the keys pressed down by the specified player, who is streamed in.


Parameters:

playerid

playerid : The ID of the player whose keys pressed down you want to obtain.


Return Values:
The keys(same as that returned by player.Key or onPlayerGameKeysChange used in server) of the specified player. Returns -1 if the player does not exist.