Winters 1 Posted July 22, 2002 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
Winters 1 Posted July 22, 2002 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 Share this post Link to post Share on other sites
bn880 5 Posted July 22, 2002 Hold on brother, help is on the way... no really Share this post Link to post Share on other sites
bn880 5 Posted July 22, 2002 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
Winters 1 Posted July 22, 2002 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
suchey 0 Posted July 22, 2002 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
bn880 5 Posted July 22, 2002 Exactly. just put bridgeDestroyed = false; in your players init field. Share this post Link to post Share on other sites
Winters 1 Posted July 22, 2002 "I See" Shouted the Blind Man as he picked up his hammer and saw. Thanks i am gonna try it out now. Share this post Link to post Share on other sites
Winters 1 Posted July 22, 2002 OMGOMGOMGitworksitworksthankyouthankyouthankyouohsomuchthisisgonnabesuchafunmapyoudontunde rstandhowmuchthishelpsoutifyouwantiwillsendyouthemissionitdoesnotrequireanyaddons Share this post Link to post Share on other sites
bn880 5 Posted July 22, 2002 LOL It's not that big of a deal really! dontsendmethemissionjusthostitsomewhereandleteveryoneenjoyitifyouwant Share this post Link to post Share on other sites
Winters 1 Posted July 23, 2002 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