• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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