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

wait problem

Status
Not open for further replies.
Level 3
Joined
Aug 27, 2004
Messages
50
problems over problems:

i have caster which has a unit(constructor) walking all the time behind him.
the unit(constructor) starts to construct a building when the construction is finshed i remove the unit(constructor) and the caster is loaded into the constructed building.
the constructed building has an exparation timer (it gets destroyed after a while) and the caster is getting unloaded.

the trigger is:
event: unit is getting unloaded

Action:wait 30 seconds
create unit(constructor)

i dont want to create the constructor right after the caster is getting unloaded.
at the moment i removed the "wait 30 seconds" because otherwise it wouldnt create the unit at all.
so how can i create the constructor 30 seconds after the caster got unloaded?
i hope my explanation is not to stupid.
and i also hope you dont think i am spamming or something.
 
Level 5
Joined
Jun 21, 2004
Messages
129
I'm not sure i fully understand, but you could set the unit in a variable, then make an action the hides the unit, then after the unloading and time you move him to where you want him to be, then unhide him. i don't know if this is what you looking for.
 
Level 3
Joined
Aug 27, 2004
Messages
50
that was my first idea too but the problem is the unit(constructor) collects dead bodies to build, so i have to remove the unit to delete the dead bodies inside it.

thx alot for the try
 
Level 3
Joined
Aug 27, 2004
Messages
50
Yeah exactly like the meatwagon:
another problem i think he would start collecting the same bodies again and if he has 8 bodies collected he starts building, so i somehow have to delete the unit with the stuff in it.
and i dont want to unload and then remove all dead bodies from the map that would be bad for some other heros that use dead bodies too.
there must be a solution for this

i hope you can help me raven.
 
Level 3
Joined
Aug 27, 2004
Messages
50
thx for the help guys but i got the solution:

i dont wait 30 seconds first

i create the goblin first the i hide him
then i do the 30 seconds wait
and then i unhide

you just cant do the wait first.

but thank you guys for the help.
 
Status
Not open for further replies.
Top