Dummy Units owned by Neutral Hostile

Squishy

You can change this now in User CP.
Reaction score
127
I have made a trigger that creates a Dummy Unit owned by Neutral Hostile and orders it to cast a spell. But the dummy won't cast it. I know the problem is the dummy is owned by Neutral Hostile because I have changed the owner to player 1 and it works fine. Does anyone know why this is happening?
 

Squishy

You can change this now in User CP.
Reaction score
127
Code:
Test Trigger
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Test Ability 
    Actions
        Set Temp_Point = (Position of (Target unit of ability being cast))
        Unit - Create 1 Dummy for Neutral Hostile at Temp_Point facing Default building facing degrees
        Unit - Add Storm Bolt to (Last created unit)
        Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
        Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
        Custom script:   call RemoveLocation (udg_Temp_Point)

But I don't think the trigger is the problem. If I make it create the dummy for Player 1 it works fine.
 

WastedSavior

A day without sunshine is like, well, night.
Reaction score
217
Perhaps you can work around it, why does it need to be owned by neutral hostile?
 

Squishy

You can change this now in User CP.
Reaction score
127
I think I'm gonna have to work around it. And I need it to be owned by Neutral Hostile because the ability it would get if this worked depends on the owner of which unit casted it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top