- Joined
- Sep 9, 2010
- Messages
- 368
Solved
Yo,
I'm currently working on a map that contains a spell that will fire away a bullet. The bullet will move automaticly (you won't be able to assign the facing with your mouse). Move 1000 yards forward with the facing as the casting unit. When the bullet comes within 100-150 yards within an enemy unit, dummy or wall, the bullet will explode, causing AoE damage.
The problem is that the bullets aren't exploding at the impact.
Here is my triggers
Yo,
I'm currently working on a map that contains a spell that will fire away a bullet. The bullet will move automaticly (you won't be able to assign the facing with your mouse). Move 1000 yards forward with the facing as the casting unit. When the bullet comes within 100-150 yards within an enemy unit, dummy or wall, the bullet will explode, causing AoE damage.
The problem is that the bullets aren't exploding at the impact.
Here is my triggers
-
Fire
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Fire
-
-
Actions
-
Unit - Remove Bullet[(Player number of (Owner of (Casting unit)))] from the game
-
Unit - Create 1 Bullet Dummy for Player 1 (Red) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
-
Set Bullet[(Player number of (Owner of (Casting unit)))] = (Last created unit)
-
Unit - Order (Last created unit) to Move To ((Position of (Casting unit)) offset by 1000.00 towards (Facing of (Casting unit)) degrees)
-
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Bullet Dummy) and do (Actions)
-
Loop - Actions
-
Trigger - Add to Fire Impact <gen> the event (Unit - A unit comes within 150.00 of (Picked unit))
-
-
-
Wait 2.00 seconds
-
Unit - Explode Bullet[(Player number of (Owner of (Casting unit)))]
-
-
-
Fire Impact
-
Events
-
Conditions
-
((Entering unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True
-
-
Actions
-
Unit - Order (Picked unit) to Neutral - Kaboom! (Entering unit)
-
-
Last edited: