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

Timer problem?

Status
Not open for further replies.
Level 15
Joined
Sep 27, 2009
Messages
676
Hi guys, i'm creating an orpg map and i need respawn timer system...
And here's my respawn system:
THIS IS RESPAWN SET TRIGGER
  • Village
    • Events
      • Unit - A unit enters Inn 1 <gen>
    • Conditions
    • Actions
      • Set Res[(Player number of (Owner of (Triggering unit)))] = (Center of Inn 1 <gen>)
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: Respawn Point Saved...
AND THIS IS RESPAWN:
  • Unit Respawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: Your hero will be r...
      • Wait 40.00 seconds
      • Hero - Instantly revive (Dying unit) at Res[(Player number of (Owner of (Triggering unit)))], Show revival graphics
      • Camera - Pan camera for (Owner of (Triggering unit)) to Res[(Player number of (Owner of (Triggering unit)))] over 0.00 seconds
How can i make that when hero dies, timer activates (called: Owner of dying unit's hero respawn in:)....
It should elapse in 40 seconds and then it dissapear, It should work for all dead heroes.. ?
 
Level 13
Joined
Sep 13, 2010
Messages
550
  • Countdown Timer - Create a timer window for TIMER[(Player number of (Owner of (Triggering unit)))] with title ((Name of (Owner of (Triggering unit))) + will respawn in:)
  • Countdown Timer - Start TIMER[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in 40.00 seconds
  • Set TimerWindow[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
  • Wait 40.00 game-time seconds
  • Countdown Timer - Destroy TimerWindow[(Player number of (Owner of (Triggering unit)))]
if that is you want
 
Status
Not open for further replies.
Top