MorbazanRhot
New Member
- Reaction score
- 7
Basically, to make some creep fighting more interesting I gave them some random dummy abilities. Here's an example:
This one is actually for units controlled by a computer player (10 Light Blue). There's one for Neutral Hostile too. The problem is that none of these abilities involving dummies are working. Now if I switch the owner of the unit to a player and he controls the unit, the ability works fine. Could anyone help me with what's going on? (if desired I can post more of the triggers)
Code:
Lightning Elemental 2
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacked unit)) Equal to Lightning Elemental
Actions
Set random = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(random Greater than or equal to 1) and (random Less than or equal to 40)
Then - Actions
Set spawningpoint = (Position of (Attacked unit))
Unit - Create 1 Decimate Dummy for (Owner of (Attacked unit)) at spawningpoint facing Default building facing (270.0) degrees
Unit - Add Chain Lightning Lightning Elemental to (Last created unit)
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Attacking unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_spawningpoint)
Else - Actions
This one is actually for units controlled by a computer player (10 Light Blue). There's one for Neutral Hostile too. The problem is that none of these abilities involving dummies are working. Now if I switch the owner of the unit to a player and he controls the unit, the ability works fine. Could anyone help me with what's going on? (if desired I can post more of the triggers)