HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Selection box blues...

07-26-2007, 04:57 PM#1
TheSecretArts
How can i detect a mouse click, but! I need to know if its on the playable map field and if they are selecting units. Pretty much, i need a way to find out the size of a selection box and the Start XY and the End XY. Is this possible without new natives?
07-26-2007, 05:40 PM#2
PitzerMike
Nowai without custom natives
07-26-2007, 05:56 PM#3
TheSecretArts
ok, thanks anyway
07-26-2007, 06:07 PM#4
Troll-Brain
Btw how custom natives work ?
07-26-2007, 06:25 PM#5
TheSecretArts
they are C++ functions injected into Warcraft 3 and have pointers added inside common.j where you can call them like any JASS functon, as long as they work
07-26-2007, 06:37 PM#6
Troll-Brain
is there a list of them ?
07-27-2007, 12:22 AM#7
Ammorth
You have to make your own. You would not have any custom functions unless you inject them.
07-27-2007, 02:43 AM#8
midiway
Is PJass an injection of custom natives?

And is possible to import this custom native to a map and use them in the map script?
07-27-2007, 02:53 AM#9
Pyrogasm
You could use a crapload of trackables, couldn't you?
07-27-2007, 03:28 AM#10
Ammorth
Quote:
Originally Posted by Pyrogasm
You could use a crapload of trackables, couldn't you?
I don't think trackables can detect mouse up (release of the mouse button), and right click also triggers trackables, if I can remember correctly.

Quote:
Originally Posted by midiway
Is PJass an injection of custom natives?
PJass is s program that runs outside of warcraft III, usually used for checking the syntax of a map while saving. That said, there were some stopwatch natives that were included in a pack (not sure which one) which were injected when you started the game with the program.

Quote:
Originally Posted by midiway
And is possible to import this custom native to a map and use them in the map script?
No. Each player has to have the same custom natives for the map to work. The natives have to be injected from their computer, and cannot be stored in a map.
07-27-2007, 10:43 AM#11
Troll-Brain
Quote:
Originally Posted by Ammorth
The natives have to be injected from their computer, and cannot be stored in a map.
ok it was so great, i believed you can import in a map