| 06-11-2003, 10:02 AM | #1 |
In my map the users must click on squares to make their moves. Since I don't need to detect every pixel, just every little region, I figured I could just have units in those squares that the user clicks on. However... I dont want the units to be shown? If I make the units invisible can the user still click on it (not drag select, but actually just click), or am I going to have to use a different method, like right clicking, and then figuring out what space the order was done on, etc. Thanks. |
| 06-11-2003, 10:43 AM | #2 |
you cant click on invisible or hidden units. |
| 06-11-2003, 10:46 AM | #3 |
can you click on a unit without a model (so it's just a cube) with vertex's set to 100% transparency? if not, 99%? |
| 06-11-2003, 12:18 PM | #4 |
im pretty sure you can drag-select 1 |
| 06-11-2003, 12:46 PM | #5 |
the only way to select a hidden/invisible unit is if u can see it, else u cant (u can see it if: u own the unit, an ally own the unit, or u have true sight) unit with transparency cast a shadow, so that method will be stupid, cuz the players can see that there is something, but invisibility is good |
| 06-11-2003, 01:59 PM | #6 |
Using ChrydGod's Enhancer SLK you can use a feature called "Use Click Helper" which supposedly adds a certain range in which a person can click on a unit without actually clicking on the model. Furthermore, using the same enhancer you can remove the unit shadow and set the model to nothing, which would make a very effective invisible and undetectable unit. As long as you set the armor to invulnerable and give it magic immunity, nothing computer controlled should try to do anything to it, either. |
| 06-11-2003, 04:43 PM | #7 |
Take a look at the demo in my signature (or at least the screenshots in the warcraft tactics forum). I've run into the same issue. In my case, I want the clickable squares to be very visible (semi-transparent), but you could just as easily make them completely transparent. In my map, I use right clicking, and then use a trigger to detect the nearest square. However, you could make the invisible unit itself have a larger selection size, and simply use that. |
| 06-11-2003, 06:54 PM | #8 |
Ari, I actually thought of you and your mod when I ran into this problem. In the end, I have decided to just use right-click and then figure out where the closest spot on my grid is. Thanks for your help guys! |
