HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Knockback

10-07-2003, 01:34 AM#1
Bhav_88
Ok, as it says in my signature, I am working on a new AOS with my partner, TiJiL. I promise it will be very good. Now, many of the spells are going to be trigger based. I am currently working on one for a specific hero which I will not divulge for fear of getting ignorant comments from morons. I don't need that, I need help with the trigger.

The spell is called wingbeat, and will be made from thunder clap. Basically, it is supposed to take all units that are affected by the spell and fling them back. Now, I am not aware of a method to 'fling' them, but it looks acceptable if they just apper back a little bit. The question is, how?

The facing angle is easy, but how might I create a trigger that moves a unit outward along the radius of a large circle, assuming the radius passes through the unit and the unit casting the spell?

If you know of a way to actually 'fling' them, I beg of you, endulge me. I sadly can't do JASS either, but I'm working on it. Maybe if someone had a JASS script I could use?

Thanks,
-Tobar
10-07-2003, 04:40 AM#2
Bhav_88
Have I really stumped everyone?
10-07-2003, 04:45 AM#3
Allanon[Druid]
EDIT: Nevermind what I said before, look at
this map
10-07-2003, 08:03 PM#4
Bhav_88
I thank you majorly for your help and will probably use your trigger in the map (with your permission, and your name included on the triggers of course).


HOWEVER, that's not quite what I want to happen, though I no longer have doubts that it can be done. I want it to be thunder clap, not storm bolt, so that it flings all units surrounding the unit back.

Is there a change I can make, or is there something major that needs doing?
10-07-2003, 08:29 PM#5
FF_Behemoth
check this thread out.. I've posted a solution to an single target of knockback... http://www.wc3campaigns.com/forums/s...threadid=32021

There will be problems though with multiplle 'knocking back' units. As if 1 hits a wall/cliff/tree, you will be forced to stop 'knocking' back all units.

a simple change all you need is
A- pick all unit within 300 of KnockbackCaster matching conditions.(matching unit is a alive) equlas to true and (matching unit is a builidng) equals to false and matching unit belong to an enemy of (knockbackCaster) equals to true then do actions
Loops actions- move (picked units) offset by 50 towards the angle from knockbackCaster to knockbackTarget facing knockbackTargets degree
10-07-2003, 11:43 PM#6
Bhav_88
Thanks a lot, Behemoth. Trigger works perfectly. Want a spot in the credits?
10-08-2003, 02:54 AM#7
FM_TertiaryEye
Here is another example of a knockback trigger, this ones in jass. It knocks an initial unit, and then knocks units that the initial unit hits, and then knocks units that those additonal units hit, etc. The units all fly backwards according to the impact angle and knock down trees, rocks and other destructables in their way.

I'm not sure its any better than FF_Behemoths, but then again it's not really on the shabby side either.

The example map is here:
http://www.wc3campaigns.com/forums/s...threadid=30631
10-08-2003, 11:15 PM#8
Bhav_88
That is certainly quite cool, FM, but I know nothing of Jass and can't modify it to my needs. Like I said, needs to be thunder clap. Throws them back and stuns them. Thanks anyway, unless you'd be willing to write it for Thunder Clap for me...