- Joined
- Feb 18, 2007
- Messages
- 216
So here's my missile spells used by submarine unit:
-
Target
-

Events
-


Unit - A unit Spawns a summoned unit
-
-

Conditions
-


(Unit-type of (Summoned unit)) Equal to MissileTargeting
-
-

Actions
-


Set Target[targetnumber] = (Last created unit)
-


Set targetnumber = (targetnumber + 1)
-
-
-
Launch1
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Launch Missiles
-
-

Actions
-


Countdown Timer - Start SubMissileTimer as a One-shot timer that will expire in 60.00 seconds
-


Countdown Timer - Create a timer window for (Last started timer) with title Launch
-


Set SubMissileWindow = (Last created timer window)
-
-
-
Launch2
-

Events
-


Time - SubMissileTimer expires
-
-

Conditions
-

Actions
-


Countdown Timer - Destroy SubMissileWindow
-


For each (Integer A) from 1 to 3, do (Actions)
-



Loop - Actions
-




Unit - Create 1 Dummy for Player 1 (Red) at (Position of SubmarineMissileDummy 0028 <gen>) facing Default building facing degrees
-




Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
-




Unit - Add SubMissileDummy to (Last created unit)
-




Unit - Order (Last created unit) to Neutral Tinker - Cluster Rockets (Position of Target[(Integer A)])
-
-
-


Wait 1.00 seconds
-


For each (Integer A) from 1 to 3, do (Actions)
-



Loop - Actions
-




Special Effect - Create a special effect at (Position of Target[(Integer A)]) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
-
-
-
-





