Gwafu
Active Member
- Reaction score
- 12
In the picture attached to this post, there are four units (red dots), and a circle, and a point (black dot).
The point is the point where the spell is targeted.
The circle is the Area of Effect of the spell.
Unit 1 is inside the circle but is not facing the point.
Unit 2 is outside the circle but is not facing the point.
Unit 3 is outside the circle and is facing the point.
Unit 4 is outside the circle but is not facing the point.
Basically, the spell I made was some kind of wind magic which knockbacks enemy units inside the target area, and it seems boring. So I decided to add an effect where enemy units facing through the circle will be Cursed. The problem is, I don't know how to check if he is facing the circle (if it is inside the circle, the unit will only be affected when he is facing the point).
So, in the picture, units 2,3, and 4 are affected while unit 1 isn't.
Thanks in advance!
~Gwafu aka supertoinkz
The point is the point where the spell is targeted.
The circle is the Area of Effect of the spell.
Unit 1 is inside the circle but is not facing the point.
Unit 2 is outside the circle but is not facing the point.
Unit 3 is outside the circle and is facing the point.
Unit 4 is outside the circle but is not facing the point.
Basically, the spell I made was some kind of wind magic which knockbacks enemy units inside the target area, and it seems boring. So I decided to add an effect where enemy units facing through the circle will be Cursed. The problem is, I don't know how to check if he is facing the circle (if it is inside the circle, the unit will only be affected when he is facing the point).
So, in the picture, units 2,3, and 4 are affected while unit 1 isn't.
Thanks in advance!
~Gwafu aka supertoinkz