| 07-20-2010, 02:30 PM | #1 |
I want to know if there is a way to detect if an specific type of image is being shown to a player. For example units in minimap or that kind of images EDIT: Isn't it possible with handles? |
| 07-20-2010, 11:57 PM | #2 |
if you show image it is shown... just log your code's actions. |
| 07-21-2010, 11:38 AM | #3 |
but i want to detect a unit's icon if it is shown |
| 07-21-2010, 01:06 PM | #4 |
IsUnitVisible(whichUnit, whichPlayer)? Should work if all the units in the game have a minimap dot. Otherwise that + a check for unit type. |
| 07-21-2010, 02:21 PM | #5 |
actually i want to combine that with a "minimap image loaded" thingy. Thats why i need to know if there is a way to know if an image is being shown to some localplayer :/ |
| 07-21-2010, 04:02 PM | #6 |
What the heck? |
| 07-21-2010, 04:15 PM | #7 |
Yeah seriously, I don't get it. |
| 07-21-2010, 05:19 PM | #8 |
i wan to know if there is a way to detect if an image is currently being displayed to a player. Any image, like for instance hero icons or unit icons (its just en example i don't want those :P) |
| 07-21-2010, 05:27 PM | #9 |
Be more specific with the term "image". Do you mean the handle type image, or something completely different? |
| 07-21-2010, 06:23 PM | #10 |
for image - log your own actions for ingame TGA-BLP noooooooo nooooooo noooooo |
| 07-21-2010, 09:10 PM | #11 |
certain actions cause hero and unit icons to display for a player (the player owns a hero, or there is an idle unit with the worker classification). Both of these can be tracked via triggers, so it is possible to "detect" when an "image" is shown to a player. However, each "image" has its only method of detection, and therefore requires different methods. There is no general detection function. I am also lost as well. Please be specific and explain what you want the end result to be. No one here is going to steal your ideas and make a map/system out of it. |
| 07-21-2010, 10:06 PM | #12 | |
Quote:
Other than that I don't know. |
| 07-22-2010, 02:26 AM | #13 |
its is not possible, ever with database. |
| 07-22-2010, 01:33 PM | #14 | |
the only way i can explain this is with an example :/ I want to know if a "game default image" like hero minimap icon is currently being shown to some player. I know that there is no GUI for this, but i don't know JASS functions that might help me here. I thought that, perhaps, there is some way to assign a handle to the hero mini-map icon when it is created or something... I know this sounds kind of weird but by the time i explain what i want to do, nobody is gonna care any longer :/
|
| 07-22-2010, 01:57 PM | #15 |
What you want to do is not possible as far as I know. Try this instead. |
