CysticCraze
New Member
- Reaction score
- 12
So I want to make a unit invisible after their generic timer runs out, how would I do this?
My trigger.
My trigger.
Code:
ItemSet1
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Dark Troll
Actions
Unit - Create 1 Loot for Player 1 (Red) at ((Position of (Dying unit)) offset by (0.00, 0.00)) facing Default building facing degrees
Set Lootgrp = (Last created unit)
Unit - Add a 45.00 second Generic expiration timer to Lootgrp
Set RandomInteger1 = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomInteger1 Less than or equal to 5
Then - Actions
Hero - Create Worn Sword and give it to (Last created unit)
Hero - Create Copper and give it to (Last created unit)
Else - Actions
Hero - Create Copper and give it to (Last created unit)