Blockland Forums > Modification Help

Right click client side

Pages: (1/2) > >>

soba:

is there a way to check when a player right clicks, client side? I was hoping to make a script that upon right clicking, would mount a GUI, and then upon letting go, it would go away

Greek2me:

Yes, as long as the client has the Jet keybind set to the right mouse button.


--- Code: ---package blah
{
function jet(%state)
{
parent::jet(%state);

if(%state)
//gui open
else
//gui close
}
};
activatePackage(blah);

--- End code ---


soba:

hm, okay, what about a check to see if the player is on a playertype with jets or not?
Read the code again, that is bound to the jet button, so, its gonna jet while at the same time opening the GUI...sooo, kind of a problem

infiniteLoop:

I believe it is altTrigger();

phflack:


--- Quote from: soba on September 20, 2011, 10:59:16 PM ---hm, okay, what about a check to see if the player is on a playertype with jets or not?
Read the code again, that is bound to the jet button, so, its gonna jet while at the same time opening the GUI...sooo, kind of a problem

--- End quote ---
well, you could make a keybind which you then have right click set to

Pages: (1/2) > >>

Go to full version