• 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.

[Trigger] Zombie Infection

Status
Not open for further replies.
Level 6
Joined
May 13, 2013
Messages
111
Hi guys, I'm making a map for my project in school which is a teaser and I want my map for it. And the only one problem for my map is zombie infection. For example, at the start of the game, all players will have survivors spawned. And there's a countdown and if the timer ends, one of the survivors will become a zombie boss. Can someone do it? I already done the zombie infecting part where when they kill the survivors they become zombies.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
Can someone do it?
Thousands of mappers can do it, I am pretty sure you can with some help as well.

Create a timer, set it for the grace period you want. Create a timer window for that timer so that the players can see it. Create a trigger that fires when the timer expires. This trigger picks a random unit from all the survivors and then replaces his unit with a zombie. It then makes him hostile to all other players by picking all players but himself and making them hostile with him (and him hostile with them). You may need a variable to keep track of the zombie player that is set when the zombie player is chosen. Remember to remove (or hide) the timer window when the timer expires.
 
Level 6
Joined
May 13, 2013
Messages
111
Thousands of mappers can do it, I am pretty sure you can with some help as well.

Create a timer, set it for the grace period you want. Create a timer window for that timer so that the players can see it. Create a trigger that fires when the timer expires. This trigger picks a random unit from all the survivors and then replaces his unit with a zombie. It then makes him hostile to all other players by picking all players but himself and making them hostile with him (and him hostile with them). You may need a variable to keep track of the zombie player that is set when the zombie player is chosen. Remember to remove (or hide) the timer window when the timer expires.

Ok.. I've done it..Thanks Super Good..
 
Status
Not open for further replies.
Top