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

Respawning Issue

Status
Not open for further replies.
Level 6
Joined
Dec 9, 2008
Messages
233
Hello..

I have a little variable problem here... When i try to make unit variable...( etc. Wolf) it show me only preset -----> no unit. I wanna make that wolf, if killed, respawn every 45 seconds.... There are more than 1 wolfs on my map, and i only know how to make it respawn with only one on map.
Please help... :spell_breaker:

yea... but i still can't create unit variable....? I don't know what to do next....plz help
 
Last edited:
Level 12
Joined
Aug 22, 2008
Messages
911
That's a problem only in the Events.
It should work in conditions, so what you need to do is:
  • YourTrigger
    • Events
      • Unit - A unit dies
    • Conditions
      • (Triggering Unit) equal to YourVariableName
    • Actions
      • Blablabla
 
Level 17
Joined
Nov 18, 2008
Messages
1,538
you could create a unit array big enough for every wolf and a location array for their original spots. then create a trigger for each wolf to spawn at original spot when it dies.
 
Level 1
Joined
Dec 18, 2008
Messages
2
This works for 1 TYPE of wolf (e.g. Timber, Giant or Dire):

Events
Unit - A unit Dies

Conditions
(Unit-type of (Triggering unit)) Equal to The Wolf

Actions
Wait 45.00 seconds
Unit - Create 1 (Unit-type of (Triggering unit) for Neutral Hostile at (Position of (Triggering unit)) facing Default building facing degrees

This works for 2 TYPES of wolf (e.g. Timber, Giant or Dire):

Events
Unit - A unit Dies

Conditions
((Unit-type of (Triggering unit)) Equal to The Wolf) or ((Unit-type of (Triggering unit)) Equal to The Other Wolf)

Actions
Wait 45.00 seconds
Unit - Create 1 (Unit-type of (Triggering unit) for Neutral Hostile at (Position of (Triggering unit)) facing Default building facing degrees

Other info
The event is listed under "Generic Unit Event"
The first condition is listed under "Unit-type Comparison"
The second condition is listed under "All - or" and then "Unit-type Comparison"
The actions are straight forward.



If this is not what you ment, my bad, just thought id throw this out incase it was :D
EDIT: This works for 1 or even 15,000 of the same type of wolf (e.g. the first trigger would respawn only timber wolfs (all over map or in specific region).
 
Status
Not open for further replies.
Top