dragonhord
Knowledge is true opinion. - Plato
- Reaction score
- 82
Well ok... So I have this spell called Fire Mortars! and I want it to fire 2/3/4/5 mortars at the targeted point... Now that's cool and all woohoo... But the thing is I want the mortars to be like AoE and there is a 500 aoe target point so I want the mortars to attack random areas... I can do that just fine too... I based the units that attack off of the Demolisher unit so they can attack ground and this is my trigger...
Problem is... The damn demolisher units won't attack the ground... Any idea why?
Trigger:
- Fire Mortars
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Fire Mortars!
- Actions
- Set TempPoint = (Position of (Triggering unit))
- Set TempPoint2 = (Target point of ability being cast)
- For each (Integer A) from 1 to (1 + (Level of Fire Mortars! for (Triggering unit))), do (Actions)
- Loop - Actions
- Unit - Create 1 Demolisher for (Owner of (Triggering unit)) at TempPoint facing Default building facing (270.0) degrees
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Set TEMP_Point1 = (TempPoint2 offset by (Random real number between 0.00 and 500.00) towards (Random angle) degrees)
- Unit - Set level of Napalm for (Last created unit) to (Level of Fire Mortars! for (Triggering unit))
- Unit - Order (Last created unit) to Attack Ground TEMP_Point1
- Custom script: call RemoveLocation(udg_TEMP_Point1)
- Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
- Events
Problem is... The damn demolisher units won't attack the ground... Any idea why?