View Single Post
  #9  
Old 06-25-2006, 12:04 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The 'leftmousebutton' variable might not be set anymore at the time the script is run though, so if people click fast then it might not work.
So either do (in old script):
PHP Code:
//#CLIENTSIDE
if (mousedown && strequals(#p(0),left)) {
  
putbomb 1,mousex,mousey;

or (new scripting):
PHP Code:
//#CLIENTSIDE
function onMouseDown() {
  
putbomb 1,mousex,mousey;

The onMouseDown event is only invoked on left mouse click, there is also onRightMouseDown for the right mouse button, may be should add some onMiddleMouseDown too.
http://wiki.graal.net/index.php/Crea...ent/GuiControl
Reply With Quote