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

Help with getting several point in a circle {all-sides carrion swarm}

Status
Not open for further replies.
Level 10
Joined
Aug 19, 2008
Messages
491
Hey dudes, I got a question for you advanced Jassers/vJassers

What I wanna do is to "re-create" this spell I found here:
Battle Tanks - Screenshots

Nah, I'm not gonna copy it, I just need help with targeting several points in an circular area :wink:
Don't bother with the "create dummy and order it to cast" issues, just focus on the points (since I'm gonna change those values anyway)

I guess it has to do with Cos/Sin/Tan, though I'm not sure how I'm gonna use it.

Targeting north, north-east and east is not a problem, however, targeting that many points requires some advanced functions.
Any ideas?
+Rep to the dude who solves this first :thumbs_up:

P.S I'm working in vJass, so both GUI, JASS and vJass are accepted solutions

SOLVED!
by toofless
 
Last edited:
Level 8
Joined
Nov 9, 2008
Messages
502
It's not that hard.

This simply makes several points in a circle around a point:
  • blah
    • Events
    • Conditions
    • Actions
      • Set q[1] = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 15, do (Actions)
        • Loop - Actions
          • Set q[2] = (q[1] offset by 485.00 towards ((Real((Integer A))) x 24.00) degrees)
          • -------- INSERT ACTIONS HERE --------
          • Custom script: call RemoveLocation(udg_q[2])
      • Custom script: call RemoveLocation(udg_q[1])
 
Level 10
Joined
Aug 19, 2008
Messages
491
It's not that hard.

This simply makes several points in a circle around a point:
  • blah
    • Events
    • Conditions
    • Actions
      • Set q[1] = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 15, do (Actions)
        • Loop - Actions
          • Set q[2] = (q[1] offset by 485.00 towards ((Real((Integer A))) x 24.00) degrees)
          • -------- INSERT ACTIONS HERE --------
          • Custom script: call RemoveLocation(udg_q[2])
      • Custom script: call RemoveLocation(udg_q[1])

Wow... that was really simple.
Thanks a lot!
+Rep as promised

SOLVED!
 
Status
Not open for further replies.
Top