HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mouse Detection

02-18-2006, 12:48 PM#1
James59281
I'm guessing this is kind of a long shot, judging by how limited the standard W3 World Editor is for this sort of thing, but here goes:

Does anyone know of a way to detect when a mouse button is hit?

Or, even better, does anyone know of a way to detect how long a mouse button is held down??

Are there any other versions of the world editor that would make this easier?
02-18-2006, 12:50 PM#2
Vexorian
It is easy as hell to detect a right mouse click. You only need a unit and then detect any "smart" orders given to it

It is impossible to detect how long a mouse button is held down.

Left clicks require trackables which btw suck.
02-19-2006, 05:38 AM#3
PerfectlyInsane
1)Detecting Mouse clicks (left) on any units is possible- Map example GhostCity (protected).

Based on selection triggers.
02-19-2006, 12:48 PM#4
James59281
But what about detecting left mouse button clicks on empty terrain?
02-19-2006, 01:08 PM#5
Chuckle_Brother
Like Vex said, trackables. But unless I am mistaken there are some major issues with detecting who clicked. And you must create all the trackables, which may lead to some lag. I think someone once said that it causes some lag when you have lots of them around.
02-19-2006, 02:12 PM#6
Anitarf
The problem with trackables is, they were never really finished, so they lack a bunch of functionality. You can't even destroy them.

But they *can* work, in multiplayer as well. It's just too much trouble for anyone to have actually used them so far.
02-19-2006, 02:18 PM#7
Vexorian
If trackables suck selection events are the spawn from hell.

That Click detection method has awful delay issues plus other issues you note as an user