Bridge Bombing Objective
Moderator: Moderators
-
Lone_Rebel
- Sergeant
- Posts: 72
- Joined: Sat Jul 05, 2003 11:39 pm
- Location: USA
- Contact:
Bridge Bombing Objective
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.

Lone's MOH Maps

Lone's MOH Maps
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
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.

