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

Medusa-like Mechanics

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
For those who don't know what is "Medusa", it is an Ancient Mythical creature from Greek Mythology that will turn anything into stone if any creature stares at her (both Medusa and the unit must stare at each other)

Well now enough with introductions, what should I do with the trigger ?
I suppose we should compare angles ? But how ?

What I want is:
- A trigger that able to detect whether a unit is facing at Medusa and Medusa should face the unit at the same time.
- When the Unit faces Medusa and Medusa faces the unit at the same time, the unit is instantly killed.
- The angle adjustment for the stare should be +- 45 degrees since it is nearly impossible for a perfect stare for both units right ? Therefore it should have a range for the stare which is +- 45 degrees.

Can anyone show me a trigger of it ?


EDIT:
Wait I think I found something, will re-open if I don't find the solution.
 
Status
Not open for further replies.
Top