Author Topic: Right click client side  (Read 1276 times)

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

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

Code: [Select]
package blah
{
function jet(%state)
{
parent::jet(%state);

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

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
« Last Edit: September 20, 2011, 11:00:48 PM by soba »

I believe it is altTrigger();

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
well, you could make a keybind which you then have right click set to

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
Why not just make a separate keybind then..?

I believe it is altTrigger();
That's not even related to the topic. altTrigger isn't even in the controls list by default.