Bridge Bombing Objective

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

Bridge Bombing Objective

Post by Lone_Rebel »

Okay here goes, I am trying to make an objective map where you use a radio to "call in an artillery strike", and a bridge in the map blows up. Right now I have it so that when you "use" a triggeruse around the radio the bridge explodes. But how do I make it so you must hold use for a certain amount of time (like when setting a bomb) then you win and the bridge explodes.
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post by kai0ty »

right before the explosion part in the script put wait 10 (ten seconds is how long it takes to set a bomb but u can make it whatever you cant to fit your cause)
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

that would delay the explosion, but to make a time activated trigger look at the bombthinker script

you want the same logic it uses for setting, you just have to modify the result to suit your purpose.
When I am king, you will be first against the wall~
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

try this

mythread:
local.counter = 0
local.player = parm.other
while(local.player.useheld == 1)
{
local.counter++
if(local.counter == 10) // break out of the loop if counter hits 10
break
wait 1
}
if(local.counter == 10) // check that player didn't let go of use key before it hit 10
{
do explosion stuff here
....
....
}
end
Last edited by bdbodger on Mon Mar 22, 2004 4:45 am, edited 1 time in total.
Image
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post by kai0ty »

woopsy, readin too fast. to make it more realistic you could make the call instant, and as a defuse u have to kill a tracing devise that appears once the raio is used....
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
Post Reply