• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Line of Sight not wokring

Status
Not open for further replies.
Level 1
Joined
Jun 4, 2012
Messages
3
Hello Forum.

My problem is that i have an ability that when cast, activates a trigger to see if it's target can see the caster.

i have so far
-((Casting Unit) is visible to (Owner of (Target unit of ability being cast))) equals true
-Then
--do actions
-Otherwise
--do actions

every time i check it, no matter whether my unit was visible or not, it always was detected as not visible.

all help will be apreciated, thank you
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Any Target-unit based spell will expose the location/visibility of the Caster to the Target (if it is enemy), it is hard-coded engine in Warcraft III.

EDIT:
The statement above is true, but when it comes to Trigger Editor, the Event fired off even before the fog is revealed, that's why we can use the trigger condition (check post #4)
 
Last edited:
Level 1
Joined
Jun 4, 2012
Messages
3
so would a point check work
where i checked the casters and the targets point and see how close they are to each other.
though that would run into the trouble of cliffs but it shouldn't be to hard to get around.
 
Level 1
Joined
Jun 4, 2012
Messages
3
this is so helpful, thank you defskull

i was able to reverse engineer your test and found out i was using the wrong trigger for the conditions i was using.

for future reference:
i was using the unit finishes casting ability trigger.
when i should have been using a unit starts the effect of an ability

again thank you defskull for such a quick and thorough investigation of this problem.
 
Status
Not open for further replies.
Top