Op4_2000 0 Posted August 26, 2003 I made a mission that has your 12 man group against about 250 enemy soliders so if you lose a few in a skirmish you go back to base and spwan new ones. Heres the thing, you use the radio command to activate the script which adds 4 actions make medic, solider, sniper, and cancel order. These work fine the first time. They are something like script 1- player addaction ["<selected type>", "type.sqs"] " " " exit scritp 2 player removeaction 0 "" 1 "" 2 "" 3 ~25 (spawn the selected solider) ~5 exit it works fine the first time you use it but if you repeat the command the actions don't go away and each time after that the increase. So if you lose half your team you got like 20 actions before your normal menu. Is there any other way to make commands go away that might work, or am i just out of luck. My second thing is a way to just remove the bodies of certain groups on the island. I don't want all of the bodies disappearing, just enemy ones and only soliders that you can no longer see. I've tried several bodie removal scripts but I can't adapt them to only do certain people because as I said I have 63 groups and most have all 12 units so entering it in each ones init line is out of the question. Is there one I could reverse and enter in the ones I want to stay and all the rest get deleted? Any help would be great. Share this post Link to post Share on other sites
RED 0 Posted August 27, 2003 Use the following to add the action: addedaction1 = player addaction ["<selected type>", "type.sqs"] And this to remove the action: player removeaction addedaction1 RED Share this post Link to post Share on other sites
Op4_2000 0 Posted August 27, 2003 alright thanks, any ideas on the second question. Share this post Link to post Share on other sites
RED 0 Posted August 27, 2003 Add a killed eventhandler to each enemy unit on the map, for example make an east present trigger (covering the whole island) with this in its onactivation field: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x addEventHandler [""Killed"", {_this exec {scriptname.sqs}}]" forEach thislist That willl pass the unit killed (stored in the first element of the array, _this select 0) to the scriptname.sqs RED Share this post Link to post Share on other sites