- Joined
- Nov 25, 2021
- Messages
- 498
Basically, I'm trying to make an ability without DDS that when a Catapult unit attacks, it has a chance to shoot another projectile, by creating a dummy then order it to attack once. My genius idea is that, I add a Searing Arrows that is always on autocast to the Catapult, then use a trigger to detect it.
-
Events
-
Unit - A unit Is issued an order targeting an object
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Issued order) Equal to (Order(flamingarrows))
-
(Unit-type of (Ordered unit)) Equal to Catapult
-
(Random integer number between 1 and 10) Less than or equal to 3
-
-
Then - Actions
-
Set TempPoint = (Position of (Ordered unit))
-
Unit - Create 1 Catapult Dummy for (Owner of (Ordered unit)) at TempPoint facing Default building facing degrees
-
Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
-
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Unit - Order (Last created unit) to Attack Once (Target unit of issued order)
-
Custom script: call RemoveLocation (udg_TempPoint)
-
-
Else - Actions
-
-