HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Line-of-sight

09-06-2003, 09:15 PM#1
35263526
How exactly do I create a line-of-sight system in which guards cannot see other units unless the other unit is in front of the guard?
09-06-2003, 10:15 PM#2
Raptor--
use the angle between the 2 units, and compare it to the facing direction of the unit, if its X amount close, then hes facing the unit

check the distance and any obstructions in between, and there u go
09-06-2003, 10:40 PM#3
cideh
I posted this a while ago.

http://www.wc3campaigns.com/forums/s...=new+discovery
09-06-2003, 10:42 PM#4
35263526
Basically for my map there are 8 human-controlled player and 4 comp players. I can use that for the comp players, but I need to to make it so that the area around each human player's unit is black mask accept for in the directionb hes facing, as shown below. Unit 1 would be Player 1's unit, the same thing for Unit 2 for Player 2 and so on to Unit 8 for Player 8.
09-06-2003, 10:50 PM#5
Raptor--
the only way i know to do that is to make their vision 0, and create visibility modifier regions in the direction they're facing repetedly, very fast creating/destroying them
09-06-2003, 10:55 PM#6
35263526
Thanks. This kinda occured to me after ur first post, but I was hoping there was a better way. Oh well........