- Joined
- Mar 25, 2008
- Messages
- 2,955
Hi ^^
Well i got this trigger
Well i got this trigger
-
bazooka1
- Unit - Create 1 Bazooka_dummy for Player 1 (Red) at JackPosition facing JackFacingAngle degrees
- Set missile_dummy[a] = (Last created unit)
- Wait 0.01 seconds
- Unit - Order missile_dummy[a] to Bewegen nach (JackPosition offset by 2000.00 towards (JackFacingAngle - 7.00) degrees)
- Unit - Add a 4.00 second Generic expiration timer to missile_dummy[a]
- Trigger - Add to bazooka2 <gen> the event (Unit - A unit comes within 150.00 of missile_dummy[a])
-
bazooka2
- Set temppoint1 = (Position of (Triggering unit))
- Set tempreg1 = (Region centered at temppoint1 with size (400.00, 400.00))
- Set tempgroup = (Units in tempreg1 owned by Player 2 (Blue))
- Unit Group - Pick every unit in tempgroup and do (Unit - Cause missile_dummy[a] to damage (Picked unit), dealing 20.00 damage of attack type Chaos and damage type General)
- Custom script: call RemoveLocation(udg_temppoint1)
- Custom script: call RemoveRect(udg_tempreg1)
- Custom script: call DestroyGroup(udg_tempgroup)
- Unit - Kill missile_dummy[a]