A Scripting Question

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Voltaire
Corporal
Posts: 38
Joined: Sat Jun 28, 2003 6:20 am
Location: Coalgate, Oklahoma
Contact:

A Scripting Question

Post by Voltaire »

I am working on a map which is almost done, except for what I call eye candy to spice up the map. The question I have is how do you write a script that where once an ally or axis player reaches a certain point or level in a map, the game ends with whatever side that reaches that point is declared the winner. Then of course the map is replayed like those in the objective maps several times. It's basically a enclosed tower with several levels going up from the ground. The object is to reach the uppermost room first. There's sliding doors and panels, transporters and some unexpected surprises.

Thank You,
Voltaire
Now how do you do that?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Simply make a trigger_multiple with key / value:
setthread / wintrigger

Then in your script make a thread like this:

Code: Select all

wintrigger:
  teamwin parm.other.dmteam
end
Image
Voltaire
Corporal
Posts: 38
Joined: Sat Jun 28, 2003 6:20 am
Location: Coalgate, Oklahoma
Contact:

Post by Voltaire »

Thanks jv, I'll give it a try :D

Voltaire
Now how do you do that?
Post Reply