• 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.

Vision Detection Spell (Stone Gorgon Sight)?

Status
Not open for further replies.
Level 4
Joined
Feb 18, 2011
Messages
62
For my map I am solving one problem after another, but I stumbled upon this. I opened up hive to find help on this, and I did find multiple upon multiple backstab spells/triggers. However, I am terrible at Trigonometry and cannot tweak them enough to get my solution :cry:

To start with, there are 2 units and the "vision" of each unit is 90 degrees, and I can get TargetUnit/CastingUnit and their facings(along with the angle difference of their facings and angle between their points)
So, if "both units see each other" then stuff happens
else nothing

Whoever can help on this, do use JASS or GUI only please:sad:
 
Level 4
Joined
Feb 18, 2011
Messages
62
Wow. I did use only the first function and it works like a charm :thumbs_up:
You cannot imagine the effort you saved me from (upgrading all backstab spells I found/reading multiple pages of trigonometry)

+Rep to you and MoCo :grin:
 
Status
Not open for further replies.
Top