• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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