If you use this trigger for anything, i suggest use this instead.Trigger:
- Sample Trigger
- Events
- Unit - Some unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Some Ability
- Actions
- Unit - Create 1 Locust for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Target point of ability being cast)
- Unit - Order (Last created unit) to Attack (Target point of ability being cast)
If you use this trigger for anything, i suggest use this instead.
Trigger:
- YourSpell
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to (==) (YourSpell)
- Actions
- Custom script: local unit Caster = GetTriggerUnit()
- Custom script: local unit Dummy
- Custom script: local player CasterOwner = GetOwningPlayer(Caster)
- Custom script: local location CasterLoc = GetUnitLoc(Caster)
- Custom script: local location TargetPoint = GetSpellTargetLoc()
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Unit - Create 1 Locust for (CasterOwner) at (CasterLoc) facing 1.00 degrees
- Custom script: set Dummy = GetLastCreatedUnit()
- Unit - Add a 15.00 second Generic expiration timer to (Dummy)
- Unit - Order (Dummy) to Attack-Move To (TargetPoint)
- Custom script: set Caster=null
- Custom script: set Dummy=null
- Custom script: set CasterOwner=null
- Custom script: call RemoveLocation (CasterLoc)
- Custom script: call RemoveLocation (TargetPoint)
I didn't do jass for 1 reason, not every one knows it, so i thought custom script would be a bit easier.
and we could copy/paste/change
what are you hiding from us undead.cow?