Blockland Forums > Modification Help

Function Called On Use Bricks

Pages: (1/1)

cheese6:

When ever a client opens his/her brick inventory, and switchs to a brick - how can I detect what brick he/she has currently clicked (server sided.)
Like lets say my brick inventory is


|1x1|2x2|3x2|5x5|  |  |  |etc.
if the player scrolls from 1x1 to 2x2, how can i detect when he/she has switched and what he/she has switched to.
Help would be great.

otto-san:

i think serverCmdUseInventory(%client, %slot) and %client.inventory[%slot].

Pages: (1/1)

Go to full version