![]() |
onMouseDown() not working, help?
Tried doing:
PHP Code:
PHP Code:
|
In your function, temp.x and temp.y is not defined. Try using mousex and mousey.
|
Have you tried seeing if button is actually "left"
I.e: PHP Code:
|
Quote:
|
Oh well according to documentation for GUI Controls:
onMouseDown(keymodifier,mousescreenx,mousescreeny, clickcount) - the left mouse button has been pressed inside this control http://wiki.graal.net/index.php/Crea...ent/GuiControl but I guess this is one of those Graal being Graal things. |
thanks guys, tig was right. it was defined in another function but not in Mousedown()
|
Quote:
|
Okay so to avoid making posts, ill ask here. if i have to ill make a new thread but for now, to the point...
destroy(); for some reason is constantly deleting the weapon out of my inventory.... at least i believe it is. Why? and when i use it to delete the blocks i have placed, it doesnt delete them permanently. they show up again when i reconnect. also id like to know what triggeraction means. |
destroy() destroys the object that calls it, which is why it gets removed from your inventory.
triggeraction, sends a trigger to the x, y, with an action, and parameters. Honestly though just search the forums for triggerserver or triggeraction. There's plenty of examples out there that show how it works. Tip: Search the forums for the answers, unless your question is completely specific to a situation you'll probably be able to find a solid answer. |
Thanks, i figured id go ahead and ask since i wanted to know why destroy(); was deleting my weapon. still i wonder why it wont delete the blocks i lay down permanently, it looks like their deleted on my screen until i reconnect.
oh and i know about triggerserver, saw chris vimes explain it to someone else on these forums. triggeraction i saw too but it wasnt explained, so it was fairly new to me |
Quote:
|
| All times are GMT +2. The time now is 01:58 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.