• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

special effect upon projectile impact problem.

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
how do you make it so,

that when a unit, wich has a normal attack, deals damage to another unit, a special effect is spawn at that position.

now with the "unit takes damage" event you will say.

thing is, its for a TD map. therefore, adding every spawned unit to the trigger events is not viable. or is it? does it maybe NOT matter if theres 500 events for a trigger?

any way to work around this problem?
 
Level 7
Joined
Jul 19, 2008
Messages
58
i dont think you have to make 500 triggers, you can only make one lol.

  • Events
  • Unit - A unit is attacked
  • Conditions
  • Actions
  • Special Effect - Create Special Effect on attached to the origin of (Attacked Unit) using Your\Special\Effect.mdl
  • Special Effect - Destroy (last created special effect)
the event is Generic Unit Event, and put whatever conditions you want.
 
Level 12
Joined
Mar 16, 2006
Messages
992
i dont think you have to make 500 triggers, you can only make one lol.

  • Events
  • Unit - A unit is attacked
  • Conditions
  • Actions
  • Special Effect - Create Special Effect on attached to the origin of (Attacked Unit) using Your\Special\Effect.mdl
  • Special Effect - Destroy (last created special effect)
the event is Generic Unit Event, and put whatever conditions you want.

Works for instant attacks, but for other attacks it is delayed.

You could offset the time to create the special effect using (distance between units/speed of projectile), but if it missed, it would look quite inaccurate.
 
Level 9
Joined
Jan 14, 2008
Messages
366
thanks for the inputs. i have tought about simply delaying the effect by X seconds and calculating the time amount with that formula, but i wanted to look for other options because of exactly what you pointed out.

i really dont understand why there is no "any unit takes damage" event

but what is a damage detection system??
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
do you want the special effect at the unit or at the position where the unit was when it has been attacked?

special effect at unit:
give every tower which should create the special effect an ability like poison or something like that, which has no effect, only the duration you want and a buff which is identical with the special effect you wanted


special effect at position when being attacked:
same idea, you just need another ability, like burning oil, just change buffs and durations and set damage to 0
 
Level 11
Joined
May 31, 2008
Messages
698
make any passive ability, i wud use slow poison, just set move speed decrease and all that to 0, set duration to .1, and change the buff so that is has the effect you want. Also give the buff and the ability no icon so you dont see it.
 
Status
Not open for further replies.
Top