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

Create a semicircle

Status
Not open for further replies.
Er.

I want to create a semicircle of units that will always appear behind the caster. Apparently, doing ((facing of unit) - 180) just dies out when the caster faces 0 degrees. Doing (((real(integer A)) x (360/36))/2) just creates the semicircle towards the same angle every single time. I've tried different stuff with the (facing of unit) thing but nothing really works.

How is this done?

Thanks in advance.
 
Last edited:
It should be: (not tested, but I am fairly certain it'd work)
set start = (facing of unit - 180) - 90
loop 1-10
set loc1 = middlePoint
set loc2 = middile point offset x towards start + (integer a * 18)
endloop

18 should be replaced with 180 / end loop (10 in my case)

That -90 is a savior

Thanks for the help ^^^
Solved
 
Status
Not open for further replies.
Top