Right Click Function?

Started by VK.Jona83Killer, Oct 23, 2017, 03:49 PM

Previous topic - Next topic

VK.Jona83Killer

Hello, I need the right click function.
Someone could pass me? ;D

Xmair

Just bind the right click button

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

VK.Jona83Killer


Xmair

KEYS <- {
rightClick = BindKey( true, 0x02 )
};

function onKeyDown( iPlayer, iKey )
{
switch( iKey )
{
case KEYS.rightClick:
{
MessagePlayer( "You realize what you've done?\nYou just pressed the right button on your mouse..", iPlayer );
}
break;
}
}

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

VK.Jona83Killer