HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Very hard problem PLZ help!

12-19-2003, 10:40 AM#1
D4RKSLAY3R
Im sure this isn't possible.... but it would real help my idea for a map.
Can u some how use unit editing to make units only aquire targets infront of them and not behind 1e- a unit could sneak past them behind their back and go unoticed?

If u have any ideas on how i might do this please tell me!
12-19-2003, 01:30 PM#2
th15
Event
Unit is attacked
(This even occurs just before projectile is fired and CAN be intercepted by a stop command)

Cond
Real comparison- [(Facing angle of attacking unit)-(Facing angle of attacking unit to attacked unit)] => 45 degrees

Action
Unit issue order with no target- order attacking unit to stop

Its quite simple. I havent tested it and theres a possibility the attacking unit will turn around slowly. It also doesnt stop target acquisition so if it detects something behind it while on an attack-move order it will freeze on the spot.

To my knowledge, this is the best you can do. An alternative method is to repeatedly create a LOS blocker behind each unit, thereby obscuring its LOS to its rear.
12-19-2003, 06:23 PM#3
Scyze
Is it possible to create doodads using triggers? I'v heard of creating destructibles, but not anything else!
12-19-2003, 08:27 PM#4
th15
I think some destructibles obscure LOS. I seem to remember rock chunks blocking LOS. Though I haven't directly tested it.

In any case you could make a region using dynamic trangular points and create a visibility modifier for players. Of course its the constant calculation of the LOS points that is such a headache.