Jump to content
Sign in to follow this  
Winters

How do i make my map end when the bridge is destro

Recommended Posts

Hello,

I need some help.

I made a map were the res. must blow up a bridge before tanks get across, the problem i am having is in finding the command to use with a trigger that will end the mission when the bridge is blown up. Can anyone help me?

Share this post


Link to post
Share on other sites

Ok perhaps you guys need more info. The bridge in Nogova has an ID. i would like to set a trigger that checks for this ID and ends the mission once the ID is gone. This is the same as a trigger set to "WEST" "NOT PRESENT" except since the Bridge is fixed on the map it does not have a side it only has an ID# and i need to know how to make the mission end once that part of the bridge had been destroyed. with all these people looking over this thread SOMEONE has to know how to do this.

please, please, please, please help me confused.gif

Share this post


Link to post
Share on other sites

Hold on brother, help is on the way... no really

Share this post


Link to post
Share on other sites

Crate a trigger for *each bridge section*, and put this in the Condition field:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">damage (object 167669) >= 1<span id='postcolor'>

where the 167669 is the object id of the first bridge section (you change this for every section)

in the Activation field of each put:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">bridgeDestroyed = true;<span id='postcolor'>

then create another trigger and in the Condition field put:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">bridgeDestroyed<span id='postcolor'>

in Type select End #1

Do not forget to initialize bridgeDestroyed to false first.

Share this post


Link to post
Share on other sites

Thanks bn880,

Only one thing, you kinda lost me on your last remark. How do i "Do not forget to initialize bridgeDestroyed to false first."?

Share this post


Link to post
Share on other sites

think hes referring to setting this...

bridgeDestroyed = false;

..somewhere at the beginning of the mission.

Share this post


Link to post
Share on other sites

Exactly.

just put bridgeDestroyed = false; in your players init field.

Share this post


Link to post
Share on other sites

"I See" Shouted the Blind Man as he picked up his hammer and saw.

Thanks i am gonna try it out now. biggrin.gif

Share this post


Link to post
Share on other sites

OMGOMGOMGitworksitworksthankyouthankyouthankyouohsomuchthisisgonnabesuchafunmapyoudontunde

rstandhowmuchthishelpsoutifyouwantiwillsendyouthemissionitdoesnotrequireanyaddons biggrin.gifsmile.gifbiggrin.gifsmile.gifbiggrin.gif

Share this post


Link to post
Share on other sites

LOL

It's not that big of a deal really! smile.gif

dontsendmethemissionjusthostitsomewhereandleteveryoneenjoyitifyouwant

Share this post


Link to post
Share on other sites

I always share my maps, in fact i just finished a bunch of readme's and will post some links to my maps.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×