| 04-30-2006, 07:32 PM | #1 |
Is there a way to make events that happen just when u click. Doesn't matter where, just happens when u click. It would be great if there was a way to decifer between left clicking and right clicking, but if not i am ok. Also, i want to know if there is a way to make keyboard events, like when you hit the button "t" it will say on the screen, "you have pressed t". If any1 knows anything, please let me know. Thank you. ![]() |
| 04-30-2006, 07:49 PM | #2 |
What do you want it for? For the first part, you could use trackables, but they require JASS and were never finished, so lack a lot. For the second, the only way is with abilities and hotkeys. |
| 04-30-2006, 08:20 PM | #3 |
Well I know for a fact it is possible to have clicking work, seeing as though there is a game called click wars, where you click on a unit to deal damage to it. And for the keyboard event, as far as I know it's only possible for esc and the arrow keys. Please feel free to correct me if I'm wrong of course. |
| 04-30-2006, 08:23 PM | #4 | |
Quote:
That is a selection event, which only works on units. |
| 04-30-2006, 08:25 PM | #5 |
I believe hotkeys work if you've hidden the ability icon. So you could make a dummy ability with the hotkey T, put it in a spellbook, give the spellbook to the unit, disable the spellbook for that player, and then when the player casts that spell the trigger will go off (but the player can't see the icon). For the whole clicking business...you can try this but they're annoying to implement. http://www.wc3jass.com/viewtopic.php?t=1997 |
| 04-30-2006, 09:12 PM | #6 | |
Quote:
|
| 04-30-2006, 10:24 PM | #7 |
What i want to do is make a better fps system, cause right now, my system is cool, but it is just an ability. If i could do the event-click action-shoot system, it would be cooler. ![]() |
| 04-30-2006, 11:41 PM | #8 |
Granted it will be tough, you could make a grid of trackables. When ever a trackable is clicked (if they are in a straight line, the one in front will gain presidence), you can count shoot there depending on its x and y. The main problem is what model will you use. I haven't any experience with trackables but I think their click "size" is based on the collision of the model, so making the model nothing means it will never be clicked on. Though, I bet you could make a box model with a completely alphaed skin so it looks invisable. |
| 04-30-2006, 11:57 PM | #9 |
You could make a huge unit so that no matter where you click you hit it... Something so big that you are inside it, so no matter where you click you click it, and then make it so when you click it it reselects your unit. |
| 05-01-2006, 09:20 AM | #10 |
This endeavor is impossible, I already explored the possibility of using trackables for my mFPS engine and it can not work. You'll have an easier time making a dummy unit with an alpha model in front of you at all times. That way when you select that dummy, deselect and fire. |
