Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Help! Trigger Assistance Please
Help! Trigger Assistance Please
02-24-2006, 07:22 PM
#1
GordonBBB
I have a four player map. In the editor I placed one unit for each player. What I want to do is make a trigger that will remove those units from the game if the corresponding player is not in the game. How do I do this?
02-24-2006, 07:35 PM
#2
emjlr3
what is the trigger that you have now, and Ill see what I can do to help you fix it
02-24-2006, 07:40 PM
#3
Blade.dk
Trigger:
Melee Initialization
Events
Map initialization
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) slot status) Not equal to Is playing
Then - Actions
Unit - Remove (My Unit) from the game
Else - Actions
Like that, just do the check for all players.
02-24-2006, 07:48 PM
#4
Jacek
And put it in periodic event also if you want ingame check.
02-24-2006, 08:12 PM
#5
GordonBBB
Thanks, guys