| 05-18-2004, 08:15 AM | #1 |
I am (also) working on a more "stealthy" hero arena map, and one of the key concepts is that all heroes are invisible when standing still, using the shadowmeld ability. But to avoid the obvious stalemate when one player hides and does nothing, or goes afk, I would give all heroes true sight when standing still as well. This is slightly harder. There does not seem to be an event for Unit Is Stationary, so all I can do is remove the true sight ability when the unit does something, not add it when it does nothing. The glass is still half empty until someone tells me how to detect when a unit is not obeying any orders. ^_^ |
| 05-18-2004, 08:48 AM | #2 |
There is no straightforward way to detect when a unit is shadowmelded, but there are some trickier ways using periodic triggers. The coolest I can think of is to use an unused player slot, not sharing vision with other players and with full vision of the map. Then check if the hero is visible to this player, if it is invisible then it is probably shadowmelding, the other possibilities are sorc invisible and windwalking, you can use order comparisons to tell if an invisible unit is moving or not, because invisible units wont automatically attack/autocast. |
| 05-18-2004, 08:57 AM | #3 | |
Quote:
Will this work anywhere on the map, or not behind cliffs, mountains, trees, vision blockers and so on? |
| 05-18-2004, 03:06 PM | #4 | |
Quote:
I think it would work everywhere because it is in his VISION (which is everything on the map in this "player's" case). |
