HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack that pushs units back.

05-30-2005, 04:23 AM#1
kenyi251
Quote:
Arrow Burst
Events
Unit - A unit Is attacked
Conditions
(Does (Attacking unit) have Arrow Burst (Thenastin)) Equal to True
Actions
Wait 0.80 seconds
Unit Group - Pick every unit in (Units within 200.00 of (Position of (Attacked unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True)) and do (Actions)
Loop - Actions
Advanced - Slide (Picked unit) using (Facing of (Attacking unit)) degrees angle with a starting velocity of 10.00 and kill destructables in the way True
Advanced - Create at Attach Point - Chest of (Picked unit) the Abilities\Spells\Human\Defend\DefendCaster.mdl effect lasting 0.80 seconds

This is the trigger i'm currently using, but it does't work well. Units are pushed before or after the missile reach them. I want them pushed when the missle reach them. Help please...
05-30-2005, 04:26 AM#2
StealthFox
Set a point variable equal to the position of the attacking unit and one for the attacked unit. Set a real variable using the math, distance function between the two points divided by the speed of the missile. Wait [real variable] game-time seconds. After, to prevent memory leak, use the custom script: call RemoveLocation([point variable]) and do it again for the other point.
05-30-2005, 05:49 AM#3
kenyi251
What trigger response to "Advanced - Any unit takes damage" ?? Triggering unit ?? or damage source??
05-30-2005, 07:13 AM#4
Anitarf
Quote:
Originally Posted by kenyi251
What trigger response to "Advanced - Any unit takes damage" ?? Triggering unit ?? or damage source??
I think damage source doesn't work with this event, only with the basic specific event, but I'm not sure. Try it. Triggering unit, if it works, reffers to the unit taking damage, not the one dealing it.