Game Development Community

How to you implement a CTF type map trigger?

by Chris Garrett (CG) · in Torque Game Engine · 05/21/2002 (6:56 pm) · 5 replies

How do I go about implementing a timed map trigger? I want to fire a victory type event when a players stands over a trigger for a certain amount of time. CTF type of thing.

C

#1
05/23/2002 (6:05 pm)
You mean like the character raises the flag up into the air and stabs it into places or if it's the winning cap, raise it into the air and hear a crowd screaming? I can't do crap... I know it's possible though... oncollision with flagstand then set pose or Raise_and_stab.dsq... something like that?
#2
05/23/2002 (6:13 pm)
When a player collides with the flag, schedule a timer. When the timer expires, seee if the player is still over the flag. If so, then it's a win situation.
#3
05/25/2002 (7:56 am)
Thanks for the replies, I figured it out. I will post the details sometime over the weekend.

T
#4
06/02/2002 (2:03 pm)
*bump*
#5
06/02/2002 (2:14 pm)
Make a trigger, when the trigger ticks for each player in the trigger add 1 tick to thier "total trigger time", if any of them reach MAX_TIME then cause a win.

Also, you need to reset the trigger time for each player when they enter the trigger (so its a single continous trigger).

I'll have something similar in RWTA later this week if you keep an eye out for its released.

Phil.