HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wait for event or Pausing Trigger?

02-01-2003, 12:21 AM#1
Guest
Ok, I have a little problem..
I made a TD map where there are up to 4 players.
trigger 1
In one of the levels, when you kill the opponent, it spawns a unit which you will eventually control through a replace/change ownership set of triggers.. (this unit can easily be referred to last replaced unit at this point), and I can apply a camera easily to this unit in this trigger

trigger 2
I also have a little cinematic after that is supposed to fire at the END of the round, which means all 4 guys have to kill the enemy.

The problem is that there is going to be lag time from the first player killing the enemy and the last player killing the enemy. What I'd like to know is this:

Is there a wait command that waits a trigger/ or pauses it till an event happens? namely, food of enemy dips below 1.

I do not really want to lock the camera too early on the unit for the guy killing the enemy first cuz then he'll think the game locked up or something..
02-01-2003, 01:32 AM#2
ChronOmega
well you could make a very hard to hear sound in your map and then use the "Wait For Sound" action...
02-01-2003, 01:37 AM#3
mikedogdude
Ok im not sure exactly what you are talking about but here is what you can do:

When the player kills the guy, set a real variable to (real variable + 1)
Then make a new trigger that starts as "value of real variable" then make it so the variable is 4 and start the cinemtaic or whatever you are doing.
02-01-2003, 03:25 AM#4
Guest
The wait for sound thing won't work.. if the sound hasn't played yet.. then it won't wait at all..

and mike dog.. what I mean is..

I have a trigger that will be RUNNING before he kills the last dood, and I want to keep that trigger running by making some waiting thing on it. unfortunately, i don't know the waiting time beforehand.. it is variable.. so I want to see if I can find a way to pause a trigger before all its actions are done.
02-01-2003, 03:49 AM#5
Trav
You can use the action: Trigger - Add trigger to queue.
02-01-2003, 05:47 AM#6
Guest
Trav, I'm not sure that it will work for a trigger that is ALREADY running. It'll definately work for one that hasn't started yet.

It's alright, I found a workaround by changing the order of events. They will view the cinematic out of sync, but the first guy will do some waiting after he's done for the others to finish. Unfortunately, there's nothing I can do about this, I'll just have to have some warning message letting them know if nothing seems to be happening, then it's because the cinematic is running for the others.