- Joined
- Dec 27, 2010
- Messages
- 15
Wait function - Multiple players
Hey I've got this issue.
In my map there's this building which all the players can construct. It goes invulnerable for 10 seconds after construction, and then gets destroyed. However my trigger doesn't kill it after 10 seconds. Here's the trigger.

Cheerz
Hey I've got this issue.
In my map there's this building which all the players can construct. It goes invulnerable for 10 seconds after construction, and then gets destroyed. However my trigger doesn't kill it after 10 seconds. Here's the trigger.
-
TempleOfFaith Finish
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to TOF
-
-
Actions
-
Game - Display to (All players) the text: A |cffffcc00Temple ...
-
Unit - Make (Constructed structure) Invulnerable
-
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Items\StaffOfSanctuary\Staff_Sanctuary_Target.mdl
-
Set TempleOfFaith[((Player number of (Owner of (Constructed structure))) - 1)] = (Last created unit)
-
Set tempGroup = (Units in (Region centered at (Position of (Constructed structure)) with size (512.00, 512.00)) matching ((Unit-type of (Matching unit)) Equal to Worker (Blood Elf)))
-
Unit Group - Pick every unit in tempGroup and do (Actions)
-
Loop - Actions
-
Unit - Remove (Picked unit) from the game
-
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
-
Custom script: call DestroyGroup(udg_tempGroup)
-
Wait 10.00 seconds
-
Unit - Kill TempleOfFaith[((Player number of (Owner of (Constructed structure))) - 1)]
-
-

Cheerz
Last edited: