• 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] Eastest way to respawn a unit

Status
Not open for further replies.
Level 3
Joined
Mar 30, 2008
Messages
26
first step: create a unit.
Second step: do trigger like below
  • spawing
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • Wait 45.00 seconds
      • Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at (Position of (Dying unit)) facing (Position of (Killing unit))
Unit - A unit owned by Player 12 (Brown) Dies change to player to whatever you need it.

pls give rep to me

and also change the Neutral Hostile in the action to the same thing as the event
 
Last edited by a moderator:
Level 7
Joined
Dec 8, 2005
Messages
319
and funny enough your trigger will cause leaks and so your trigger would be not really the "eastest" but one of the worst ways... i think the easisest way is to make a variable of the unit position or even if you wanted to... make a region for each one... but yours is just not effiecent enough for games today... but why do you even care about rep... i mean most people dont even check it and if you help someone with a trigger and your code does not cause problems then you might get rep or you might not... but unless you are making a tutorial... then just don make random posts plz. fyi when you make a trigger use the [trigger[/trigger add a "]" to the end of them
 
Level 2
Joined
Nov 8, 2007
Messages
19
i dont think that this will help somebody. if somebody tries this version of a respwaning trigger he will only learn how to make a buggy respawn which has leaks.

maybe (if u want to help) u should make a respanw trigger (system) which is very simple but also works correctly if a unit dies in hte 45 seconds. maybe its more difficult but i think it will help more.

What u have postes is just a trigger function nothing more!
 
This isnt even funny, its just sad. And wouldnt the place to post this would be the Tutorials section. Plus, as they said befor, this isnt even a good trigger. You only use the wait funciton if:
1. Every other unit in the game is paused
2. If your trigger is ONLY activatable by a single unit, and the cooldown for that unit extends the wait
3. If its a cinimatic

So, basicly, your trigger is garbage and you cant just ask people for rep for no reason.
 
Level 12
Joined
Mar 16, 2006
Messages
992
I thought it was a question while coming here, but found out it was a really funny tutorial instead.

I have only one unit in my map and when it dies I want it to spawn back exactly where it died for a different player, and never spawn back again. I have been trying to figure this out for weeks.

Thanks yous!!+++
 
Level 17
Joined
May 6, 2008
Messages
1,598
What vegavak said.


Well, if you would change one thing with it you will be able to camp them in towns :/
 
Status
Not open for further replies.
Top