| 01-06-2003, 07:05 AM | #1 |
I'd really like to know if there is a certain trigger I could use to check a player's vision. I'd like to be able to know if the player can see a certain unit on the map or not. I cannot make a region to do this because of the way I'm setting it up. Is there any other way to check? |
| 01-06-2003, 12:45 PM | #2 |
Try to check the distance between the center of the current view and the unit. |
| 01-06-2003, 01:36 PM | #3 |
A specific unit event works. Just use Unit Aquires target, and if you wanna make sure its a certain unit or unit type, just use targeted unit. I think theres on were it sees the enemy too. Hope that helps. |
| 01-06-2003, 06:21 PM | #4 |
There is a function IsVisibleToPlayer in common.j that takes coordinates and a player. That way it should be possible in custom text by using the coordinates of the units location. |
| 01-06-2003, 08:32 PM | #5 | |
Quote:
Doesn't that only work if the players are enemies? Well I should be able to use that anyway it just might be kind of tricky. |
