Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-25-2006, 07:20 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
What? I've always done..

NPC Code:

//#CLIENTSIDE
function onMouseDown()
{
if ( params[0] == "left" ) {
player.chat = "You have just left clicked!";
} else if ( params[0] == "right" ) {
player.chat = "You have just right clicked!";
} else if ( params[0] == "double" ) {
player.chat = "You have just double clicked!";
} else if ( params[0] == "middle" ) {
player.chat = "You have just clicked on your mouse wheel!";
}
}




..and it's always worked fine for me.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.