• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] What's wrong with this?

Status
Not open for further replies.
I have a trigger that i am having problems with. I have an ability that summons a dummy unit and then a trigger destroys it and is supposed to make "Flowers" at that point. The problem is that the flowers disappear after a few seconds... They don't appear at all if i don't make it play the "Stand" animation... Can you please tell me why?

Code:

  • GardenerEarn
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Dummy_Flower
    • Actions
      • Set SumUnit = (Summoned unit)
      • Set SumUnitPoint = (Position of SumUnit)
      • Unit - Remove SumUnit from the game
      • Destructible - Create a Flowers at SumUnitPoint facing (Random angle) with scale 1.00 and variation 0
      • Animation - Play (Last created destructible)'s stand animation
      • Set SumUnit = No unit
      • Custom script: call RemoveLocation(udg_SumUnitPoint)
      • Player - Add 10 to (Owner of (Triggering unit)) Current gold
 
Status
Not open for further replies.
Top