Hi all, this used to work with single Unit (Picked unit was Hero manipulating item) but now that I try the same thing with Unit Group it doesnt work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------
MT
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to MT
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
Wait 1.00 seconds
Sound - Play MassTeleportTarget <gen>
Special Effect - Destroy (Last created special effect)
Unit - Move (Picked unit) instantly to (Random point in Region 001 <gen>)
Camera - Apply Camera 011 <gen> for Player 1 (Red) over 0.00 seconds
Wait 1.00 seconds
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
Sound - Play MassTeleportTarget <gen>
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
my map only contains 3 (Player 1) Units so it can't be that...where's the mistake?
Thanx in advance!
=)
------------------------------------------------------------------------------------------------------------------------------------------------------------------
MT
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to MT
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
Wait 1.00 seconds
Sound - Play MassTeleportTarget <gen>
Special Effect - Destroy (Last created special effect)
Unit - Move (Picked unit) instantly to (Random point in Region 001 <gen>)
Camera - Apply Camera 011 <gen> for Player 1 (Red) over 0.00 seconds
Wait 1.00 seconds
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
Sound - Play MassTeleportTarget <gen>
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
my map only contains 3 (Player 1) Units so it can't be that...where's the mistake?
Thanx in advance!
=)