desantnik 0 Posted October 1, 2002 is there anyway thru scripting to make a engineer clear mines like make him detect them and loop the action of going to them and disabling them?, would really help, so if any of you gurus who understand the black magic ( painfully logical for the ordinary joe) would help out? Tx Share this post Link to post Share on other sites
Col Saint 0 Posted October 1, 2002 well yes there is one sort of well not clearing it, a engeneer can discover the field and set marker on the map. Look here for minefieldscript You might can change the script so the engeneer is picking up mines. But the script is using triggers and heat125 underground, well maybe you like to have it. Share this post Link to post Share on other sites
RED 0 Posted October 1, 2002 Have a script with something like: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> removed = 0 #start ?removed == 1: exit player removeaction id1 remove = 0 ?(player distance mine1) <= 3: goto "disable" ~0.5 goto "start" #disable id1 = player addAction ["disable mine", "removemine.sqs"] remove = 1 #loop ~1 ?(player distance mine1) >= 3: goto "start" goto "loop" <span id='postcolor'> That will detect if the player is 3 meters near the mine then add the disable mine option to his menu. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ; removemine.sqs mine1 setpos [0,0,0] removed = 1 player removeaction id1 <span id='postcolor'> That will setpos the mine to postion 0,0,0 out of the players way. Hope that helped you a bit, RED Share this post Link to post Share on other sites