• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Simple respawn for my needs

Status
Not open for further replies.
Level 15
Joined
Nov 26, 2005
Messages
1,152
Listen, I am making a "troll tribes" kind of map ... anyway, many things are finished, but still I need to figure out a small issue:
I need to find an easy way to respawn 4 types of units (Stone deposit, Iron deposit, Mithril deposit and Copper deposit). What I need is a short way to make them re-appear every 5 minutes at the exact place where they were placed in the World Editor
Please help me.
 
Unit dies, condition: triggering unit equal to deposit, wait 300 seconds, set temppoint = (Position of triggering unit), create 1 unit-type of triggering unit at temppoint for owner of triggering unit, call RemoveLocation(udg_temppoint)

the reason why you should use triggering unit is, because it's saved local means it can be used after waits
 
I thought about something similar as you Squiggy, but does this trigger work with items?
 
It won't ... because if another deposit of the same type dies before this one is revived, it will start the trigger again...
trigger can be use several time simultaneously
Squiggy's one will works perfectly if temppoint is a local variable ;)
(add as first action in the trigger "Custom Script : local location udg_temppoint" to make it local = one for each use of the trigger)
 
Status
Not open for further replies.
Back
Top