• 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] Reviving Units

Status
Not open for further replies.
Level 2
Joined
Apr 7, 2006
Messages
9
Hey!

I need a help with my campaign , and i ask for your help.

It is possible to respawn the units that die? and if thats possible , do they still have item table as before?

Son1x-
 
Level 6
Joined
Sep 19, 2006
Messages
130
Yes it is posible to respawn units when they die... the trigger is quite simple hough i dont understand what your trying to ask... i think that you want a hero to respawn right??? if so it would look like this...

Respawn
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Wait 2.00 seconds
Hero - Instantly revive (Dying unit) at (Center of (Reagon you want to spawn at)), Show revival graphics


and yes it will have the same item table...
 
Level 2
Joined
Apr 7, 2006
Messages
9
thx for answer
now i have another question.
it is possible to make spawned/created normal units item tables?
 
Level 3
Joined
Apr 15, 2007
Messages
43
As in like give a normal unit item table? So they can hold items? Yes that's possible. But I don't know if that's what you're asking.
 
Level 2
Joined
Apr 7, 2006
Messages
9
am ,no. Im asking if its possible that the spawned/created units GET item tables. so when i have trigger spawn that and that , that they can have item tables
 
Well, I guess you could just create an event such as:
  • Drop Items
  • Events:
  • Unit - <Spawning Unit Variable> dies
  • Conditions:
  • Actions:
  • Set TempPoint = (Position of (Triggering Unit))
  • Item - Create 1 <Item> at TempPoint //Something like that//
  • Custom Script: call RemoveLocation(udg_TempPoint)
I think that should work. :emote_grin:
I hope this helps!
 
Status
Not open for further replies.
Top