Hello i have read some posts on a simmilar target and copyd the code for the target e's to reset but i dont quite know how it works and such. What i am doing is making two ranges 1 range consists of multiple bmps and t72's as practice for chopper missels, another is consisting of numorus target e's. What i am trying to do is have them be reset by a certain unit (officer ) when that unit activates the script from a computer on a table. Here is what the code was for the other post
Also please note the armor targets must reset on activation and be as if they were not destroyed (i.e respawn kinda)
; *****************************************************
; ** Autor: Flaber
; ** - 13ª Compañia TigerSharks -
; ** web:
www.mtpstudios.net -
www.ffaa.es; *****************************************************
; ** Campo de tiro
; *****************************************************
; ** Ejecución del script (Execution)
; ** [_campo] exec "CampoDeTiro.sqs";
; ** Ejemplo (Example)
; ** [1] exec "CampoDeTiro.sqs";
; *****************************************************
; ** Necesitas una variable logica llamada "server"
; ** Hay varios campos de tiro, llama al script indicando el campo de tiro del que quieres levantar la dianas.
; ** cada campo de tiro tiene los nombres de las dianas que se corresponden.
; *****************************************************
; ** You Need a gameLogic called "server"
; ** There a few firing camps, call the script saying the firing camp whos targets will pop up
; ** Each firing camp has the var names of the targets which compose the camp.
; *****************************************************
_campo = _this select 0;
?!local server : goto "end" ;
? (_campo == 1): goto "campo1";
? (_campo == 2): goto "campo2";
? (_campo == 3): goto "campo3";
? (_campo == 4): goto "campo4";
? (_campo == 5): goto "campo5";
? (_campo == 6): goto "campo6";
; Campo de tiro de pistola (Pistol Firing Camp)
#campo1
ac_1 SetDammage 0.0;
ac_2 SetDammage 0.0;
ac_3 SetDammage 0.0;
ac_4 SetDammage 0.0;
ac_5 SetDammage 0.0;
ac_6 SetDammage 0.0;
ac_7 SetDammage 0.0;
ac_8 SetDammage 0.0;
ac_9 SetDammage 0.0;
ac_10 SetDammage 0.0;
goto "end"
; Campo de tiro Francotirador (Sniper Firing Camp)
#campo2
fr_1 SetDammage 0.0;
fr_2 SetDammage 0.0;
fr_3 SetDammage 0.0;
fr_4 SetDammage 0.0;
fr_5 SetDammage 0.0;
fr_6 SetDammage 0.0;
fr_7 SetDammage 0.0;
goto "end"
; Campo de tiro MA1A1 (Tank Firing Camp)
#campo3
bl1 SetDammage 0.0;
bl2 SetDammage 0.0;
bl3 SetDammage 0.0;
bl4 SetDammage 0.0;
bl5 SetDammage 0.0;
bl6 SetDammage 0.0;
goto "end"
; Campo de tiro Ametralladora pesada (MG Firing Camp)
#campo4
mg_1 SetDammage 0.0;
mg_2 SetDammage 0.0;
mg_3 SetDammage 0.0;
mg_4 SetDammage 0.0;
mg_5 SetDammage 0.0;
mg_6 SetDammage 0.0;
mg_7 SetDammage 0.0;
mg_8 SetDammage 0.0;
mg_9 SetDammage 0.0;
mg_10 SetDammage 0.0;
goto "end"
; Campo de tiro sub-fusil
#campo5
_ldra1 = [ra_1,ra_2,ra_3,ra_4,ra_5,ra_6,ra_7,ra_8,ra_9]
_ldra2 = [ra_11,ra_12,ra_13,ra_14,ra_15,ra_16,ra_17,ra_18,ra_19]
_ldra3 = [ra_21,ra_22,ra_23,ra_24,ra_25,ra_26,ra_27,ra_28,ra_29]
"_x setDammage 0.0" foreach _ldra1
"_x setDammage 0.0" foreach _ldra2
"_x setDammage 0.0" foreach _ldra3
goto "end"
; Campo de tiro fusil
#campo6
_ldra4 = [ra_31,ra_32,ra_33,ra_34,ra_35,ra_36,ra_37,ra_38,ra_39]
_ldra5 = [ra_41,ra_42,ra_43,ra_44,ra_45,ra_46,ra_47,ra_48,ra_49]
_ldra6 = [ra_51,ra_52,ra_53,ra_54,ra_55,ra_56,ra_57,ra_58,ra_59]
"_x setDammage 0.0" foreach _ldra4
"_x setDammage 0.0" foreach _ldra5
"_x setDammage 0.0" foreach _ldra6
goto "end"
#end
exit
-----------------------------------------------------------------
Please post how to use this or what ever new script you can come up with that would suit my needs best as well as post the code ty.
ps. i know that all i need to do is paste the code into the sqs in chris's editor and put somthing like execute x script in the ini feild and such but please fill in the details as to what i put and where.