HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how to make a unit shoot a skill in a circle

04-03-2007, 03:19 PM#1
Night-raider
ok, im making this skil, it shoots a shockwave based skill in a circle so it looks like it blasts away from 1 spot, theres no delay inclueded they all shoot at the same time, can figure it out
(im using a dummy and the summon skill of that dummy is based on statis trap, i know how that works, dun wory bout that)
04-03-2007, 03:40 PM#2
Vexorian
Ok, what's the question/problem?
04-03-2007, 03:49 PM#3
Night-raider
ok im trying to make a dummy shoot a shock wave based skill in the angles: 0, 45, 90, 135, 180, 225, 270, 315, 360(aka 0)
Can you help me on this???
-i got the dummy skill
-just need to know how to make it shoot in a cirlce
-NO JASS, thank you
04-03-2007, 04:29 PM#4
Vexorian
If you want n sockwaves, Make a loop from 0 to n-1, then pick i*(360/n) as angle and do a polar projection, use 10.0 at distance, use a dummy to cast shockwave against the polar projected point.
04-03-2007, 04:47 PM#5
st33m
Shit shit shit your avatar is freaking me out. But yes, do what Vexorian said. Be careful to keep the dummy unit alive for as long as the shockwaves go though, I think if it gets destroyed too soon it wont register the kills for you.
04-03-2007, 04:59 PM#6
Night-raider
well vexorian i dun understand what ur saying
and st33m its invulnerable, i thought of that problem xD,
im using gui btw, i cant use jass, unno how to :P
AND its supposed to shoot a circle, so it deletes itself after it shot the shockwave
04-03-2007, 05:04 PM#7
Dil999
That will cause a shockwave to come out in 8 directions from the targeted point. The only restriction is the dummy must have locust, and must not be invulnerable (or else expiration timers dont work)
I havent tested this, but its a pretty simple trigger so I'm pretty sure it will work.

Trigger:
Shockwave outwards
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Animate Dead
Collapse Actions
Collapse For each (Integer A) from 1 to 8, do (Actions)
Collapse Loop - Actions
Set TempPoint = (Target point of ability being cast)
Unit - Create 1 Footman for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_TempPoint)
Set TempPoint = ((Target point of ability being cast) offset by 60.00 towards ((Real((Integer A))) x 45.00) degrees)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave TempPoint
Custom script: call RemoveLocation (udg_TempPoint)
04-03-2007, 05:05 PM#8
st33m
Erm no, I meant don't destroy it. But whatever. It sounds like you're either good or you figured it out. I would post code for this but I cant do it off the top of my head and I dont have wc3 with me atm.

EDIT: Oh he did it.^
04-03-2007, 05:12 PM#9
Night-raider
urm no expiration timer axtualy, casts and removes itself, thats what im trying to accomplish but il try ur thing vexorian
04-03-2007, 05:48 PM#10
Night-raider
ok sorry for the dubble post but this is something i gotta say:
vexorian, it doesn't work, tryed it didnt work
st33m, i love freaking ppl out
04-03-2007, 05:54 PM#11
st33m
Just edit next time >>

And your avatar is freaking me out cause its the avatar my friend uses...
04-03-2007, 05:59 PM#12
Vexorian
I made this very same skill a long ago using that method, so I am kind of sure it works, how about posting some code?
04-03-2007, 06:01 PM#13
Night-raider
well i prefer no jass, unno how that works so, i dun trust things of wich i unno how it works xD (it only shoots the shockwave once, not 8 times)
and st33m i found it on google, DUN BLAME ME, BLAME GOOGLE
04-03-2007, 06:07 PM#14
Vexorian
I meant what about YOU POST THE CODE that doesn't seem to be working?
04-03-2007, 06:09 PM#15
Night-raider
its the exact same thing u used :S
could it bee cozz my summon skill already summons something AND it has 15 levels