- Joined
- Jun 1, 2007
- Messages
- 98
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:
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
-
Events