Script Reference
Event


 on (rightclick)     //Advanced
 {

 }

Used for : Objects, Characters, Items.


Description :

Event for handling the right mousebutton. This event only works when there are no other mousecursors in use than the standardcursor and the loading cursor. If you use additional mousecursors the right mousebutton will switch between those cursors. You can use  popupcoin in an on(rightclick) event in case you are using a coinmenu without the autopopup option.


Example :

 on (rightclick)
   {
   command (open)
   }



This will automaticly choose the gamecommand "open" by using the right mousebutton.