• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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