HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

projectile not going straight

01-15-2007, 09:35 PM#1
evilmapcreater
when i want to use a trigger to make a unit use an ability like undead carriow swarm, the projectile dose not go striaght. Heres my trigger
Trigger:
down arrow shoot
Collapse Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Collapse Actions
Unit - Order Tanks[(Player number of (Triggering player))] to Undead Dreadlord - Carrion Swarm ((Position of Tanks[(Player number of (Triggering player))]) offset by 0.01 towards (Facing of Tanks[(Player number of (Triggering player))]) degrees)
maybe use a shooter system?
01-15-2007, 09:39 PM#2
Feroc1ty
edit: i don't quite understand what the ability is, changing the offset to something much larger would probably change the problem too.
01-15-2007, 09:42 PM#3
StockBreak
I had the same problem. If you put a high cast range and a high distance then the projectile won't go straight. Try to use lower values.
01-15-2007, 09:46 PM#4
maximilianx
hmm, i think i might understand whats goin on here (maybe)
by straight you mean, off to the side instead of at the target?
how bout adding a unit rotation action and then waiting till the the unit is facing its target to use the spell?
01-15-2007, 10:08 PM#5
evilmapcreater
well... im going to take my trigger and break it down a lil
Trigger:
down arrow shoot
Collapse Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Collapse Actions
Unit - Order (Picked unit) to Undead Dreadlord - Carrion Swarm ((Position of (Picked unit)) offset by 1.00 towards (Facing of (Picked unit)) degrees)
and the "projectile" dose not go inaline with the faceing angle of the unit, tried making off set bigger and smaller....
01-15-2007, 10:24 PM#6
maximilianx
Oh.....well i honestly dont know whats wrong here, because i made a map real quick to test the trigger and it worked fine for me..
Trigger:
down arrow shoot
Collapse Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Collapse Actions
Unit - Order (Picked unit) to Undead Dreadlord - Carrion Swarm((Position of(Picked unit)) offset by 200.00 towards (Facing of (picked unit))degrees)

Dont know whats wrong, it worked at 200 for me, if you tried the longer distance, maybe its your abilities maximum cast range?
01-15-2007, 11:04 PM#7
evilmapcreater
i made a map with the trigger and my unit, here, please thake a look
Attached Files
File type: w3x(12)My map!!.w3x (11.8 KB)
01-15-2007, 11:25 PM#8
maximilianx
hehe i found your problem, your trigger was messy, change it to this, you have to make one for every player i guess, for it to work more efficiently.
Trigger:
Player 1 down key
Collapse Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Collapse Actions
Unit - Order Tank[1] to Undead Dreadlord - Carrion Swarm ((Position of Tank[1]) offset by 200.00 towards (Facing of Tank[1]) degrees)

This one works but it doesnt shoot straight, it shoots kinda off, maybe you want that? haha so its not so easy to hit somebody i dont know, but the one above is more accurate.
Trigger:
down key press
Collapse Events
Player - Player 1 (Red) Presses the Down Arrow key
Player - Player 2 (Blue) Presses the Down Arrow key
Player - Player 3 (Teal) Presses the Down Arrow key
Etc..all the way to 12
Conditions
Collapse Actions
Unit - Order Tank[(Player number of (Triggering player))]] to Undead Dreadlord - Carrion Swarm ((Position of Tank[(Player number of (Triggering player))]) offset by 200.00 towards (Facing of Tank[(Player number of (Triggering player))]) degrees)
01-16-2007, 12:17 AM#9
evilmapcreater
nope still dosent work! i even made a trigger that created a dummy unit told it to cast it, and then remove the dummy unit from game. dosent work...
01-16-2007, 12:37 AM#10
maximilianx
It worked perfect for me. did you copy the top trigger exactly? because i tested that and it never went off to the side at all.....the second trigger doesnt shoot straight for some reason tho.
01-16-2007, 07:40 AM#11
Shark
if you're trying to hit a moving target, you might wanna get its bearings, or - calculate his next position and fire there... i don't have WC3 here at the moment so i can't really batch up a trigger, but the equation is something like this:
if your casting time is one second, the moving speed of the target unit is 200, and the facing of the target unit is 90 (or east), to hit it straigth, you'd have to cast your thing 200 points to the east in order to hit it (presuming it won't change directions or stop) but you shouldn't have any problems hitting it with carrion swarm unless it stops...

or i got it all wrong and you're just trying to accomplish something else ?
01-16-2007, 02:12 PM#12
maximilianx
didnt really get what you just said, and 90 degrees is north btw
but what he wants to do is..he has this tank for every player and he wants it to use carrion swarm straight ahead whenever you press the down button, i already made the trigger for him and it works fine.. but he says its giving him problems O_o
01-16-2007, 06:58 PM#13
evilmapcreater
i tested it twice.. if you just test it and click the shoot button it goes stright.. but move it around it goes in directions from 45 to 135. Like the top half of a circle. And yes im talking about the one that you said worked is there a ability i can base it off of besides carriow swarm? an ability that when use it automaticly shoots infrom of you?
01-16-2007, 11:55 PM#14
maximilianx
i dont understand why it wont work for you, i moved my tank around a whole lot and it would work, maybe try basing it off of shockwave? but then it will dent the terrain, and if you dont like that then im not sure what you'd do...