Warcraft III resources & community, 2003–2006 · archived

wait problem

6 posts
#1

wait problem

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.
#2
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.
#3
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
#4
You mean like the Meat Wagons? I think that you can just order the Constructor to drop/unload them.

~The_Raven
#5
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.
#6
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.