on_mouse_right = function;

The function is executed when the right mouse button is pressed. Dependent on the key, the number 281 (right) is passed as parameter to the function.

Remarks:

Value 281 is passed as parameter to the function.

Example:

var maus[3];
 
 function maus_pos(test) 
   {
     if(test == 281)
     {
       maus.x = mouse_cursor.x; 
       maus.y = mouse_cursor.y;
     }
   }
 
 on_mouse_right = maus_pos; 

See also:

on_click, on_mouse_left, on_mouse_middle, on_mouse_stop, on_close, on_joy, on_f1, on_anykey, on_client, on_server