• 🏆 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!

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