Neutral Hostile Gore
Events
Unit - A unit Dies
Conditions
(Owner of (Dying unit)) Equal to Neutral Hostile
(Race of (Dying unit)) Equal to Undead
Actions
Set Point = (Position of (Dying unit))
Special Effect - Create a special effect at Point using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
For each (Integer Integer) from 1 to 3, do (Actions)
Loop - Actions
Set Point3 = (Point offset by (Random real number between 100.00 and 400.00) towards (Random angle) degrees)
Unit - Create 1 GoreLauncher[(Random integer number between 0 and 5)] for Player at Point facing Point3
Unit - Order (Last created unit) to Attack Ground Point3
Unit - Add a 0.20 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_Point3)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Commander cmdr
Then - Actions
For each (Integer Integer) from 1 to 3, do (Actions)
Loop - Actions
Set Point3 = (Point offset by (Random real number between 100.00 and 400.00) towards (Random angle) degrees)
Unit - Create 1 GoreLauncher[(Random integer number between 0 and 5)] for Player at Point facing Point3
Unit - Order (Last created unit) to Attack Ground Point3
Unit - Add a 0.20 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_Point3)
For each (Integer Integer) from 1 to 3, do (Actions)
Loop - Actions
Set Point3 = (Point offset by (Random real number between 15.00 and 80.00) towards (Random angle) degrees)
Special Effect - Create a special effect at Point3 using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
Custom script: call RemoveLocation(udg_Point3)
Else - Actions
Custom script: call RemoveLocation(udg_Point)