Click type: Number key

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
47
Hey there,

My question is very straight forward:


Code:
on inventory click:
    if click type is number key:

How can i detect which number key was pressed?
 
Could you try and explain what you are trying to do?
maybe we can find another solution
 
I do not think a number key, or anything other than left click can be detected as a click in the inventory. I believe the only packets sent to the server would be if a player clicks and drags an item into another slot in their inventory (with left clicking in two different spots), or if a player drops an item from their inventory (left clicking on item and clicking outside of inventory GUI. Others may be if a player scrolls items into their inventory from another GUI, if they may have MouseTweaks mod.
 
Hey there,

My question is very straight forward:


Code:
on inventory click:
    if click type is number key:

How can i detect which number key was pressed?
i think there's no way to detect a keyboard key press, other then left-right click, and that's kinda sad
 
Status
Not open for further replies.