Jump to content
Sign in to follow this  
desantnik

Hey guys - requesting a script

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×