• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Switching Teams

Status
Not open for further replies.

artmeca

A

artmeca

I have two noob questions for you.
First question -->How would I make it if a specific unit dies you switch teams?
Second question -->Is it possible to make a peasant build a gate with open/close with triggers?

Thanks for all the help in advance.
 
i'll take number 2:

let the peon build some building (doesn't matter which one; just let him hammer it for a while) with gate icon and cost
when finished detect it with generic unit event - unit finishes construction
check if unit-type of finished structure equals your dummy gate unit
remove the dummy unit (that was just built)
create a gate there (a destructible) and store it in a variable
activate previously inactive gate-triggers that will work with the variable you just assigned. (if you need to have lots of gates, at this point you register appropriate events with them)

if you have problems with gate triggers, see other threads...
 
Thanks for the help that worked perfectly. I no longer need switch teams friend showed me how to do it. Thanks all
 
Status
Not open for further replies.
Back
Top