dan3ko
Member-
Content Count
21 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout dan3ko
-
Rank
Private First Class
-
dan3ko started following Spanish Tactical Guide
-
Hello Bohemia. I open this new topic to claim a spanish tactical guide. Has no comercial sense that being the Spanish the second most spoken language after Mandarin Chinese, and being a language spoken by 468 million of people, there isn't a Tactical Guide translated to this language. ​If the Spanish spoken people could learn to play with this guide would be much more loyal to the game and most serious/bigger community. I encourage all Spanish-speaking community to claim a guide and other content in Spanish language. Union make force. Thanks. Hola Bohemia. Abro este hilo para reclamar una Guia Tactica en Español. No tiene sentido comercial que siendo el Español la segunda lengua mas hablada después del Chino Mandarin y siendo hablada por 468 millones de personas no haya una Guia Tactica traducida a esta lengua. Si los hispano parlantes pudieran aprender a jugar con esta guÃa seria mas fieles al juego y la comunidad seria mas grande y seria. Animo a todos los hispano parlantes a reclamar una guÃa y otros contenidos en Español. La unión hace la fuerza. Gracias.
-
Problems with if and switch
dan3ko replied to RonnieJ's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Yes, is single player for now. I know the IA doesen't need NV goggles, but for realism reasons I don't want the IA walk around Altis with goggles puting on in day time. -
ok, thanks.
-
And in SP?
-
Problems with if and switch
dan3ko replied to RonnieJ's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks for your reply. I don't want to radd/remove goggles from player character. I want to do in IA characters. Addweapon and Remove weapon doesn't work. -
Hello. I want to play youtube videos ingame via stem overlay, but dosen't work for me. I have steam overlay activated in steam configuration and in steam>>Arma3 configuration. I have made a script with this code: _isOpened = openYoutubeVideo "watch?v=-wqs2uZx1ZY&list=PLQEd6zRLOafVn1SweJmdr-3ICqI885awY"; And put this in flagpole for call the video: euFlag addAction ["Video","scripts\video.sqf"];
-
Problems with if and switch
dan3ko replied to RonnieJ's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hello guys. I have similar problems with "If" command. I want to add to my soldiers NV goggles only at certain hours of day and the rest of the day take off it. The code add correctly the goggles to the soldiers, but nothing more. Sorry for my english, if you don't understand something I wrote, please tell me. private "_guard"; _guard = [sold1,sold2,sold3,sold4,sold5,sold6]; if (!(daytime > 19 && daytime < 5)) then { { _x addItem "NVGoggles_INDEP"; _x assignItem "NVGoggles_INDEP"; } forEach _guard; }else{ { _x unassignItem "NVGoggles_INDEP"; _x removeItem "NVGoggles_INDEP"; }forEach _guard; }; -
Thank you very much, now works perfectly. But in your code was an error. This: [color="#FF8040"][color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_tropa[/color][color="#8B3E2F"][b]][/b][/color] [color="#8B3E2F"][b]+[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color][/color] must be: [color="#FF8040"][color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#1874CD"]_tropa[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color][/color] Definitive code was: [color="#FF8040"][color="#191970"][b]private[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"_guard"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_tropa"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_mecan"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_all"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold1[color="#8B3E2F"][b],[/b][/color]sold2[color="#8B3E2F"][b],[/b][/color]sold3[color="#8B3E2F"][b],[/b][/color]sold4[color="#8B3E2F"][b],[/b][/color]sold5[color="#8B3E2F"][b],[/b][/color]sold6[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_tropa[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold8[color="#8B3E2F"][b],[/b][/color]sold9[color="#8B3E2F"][b],[/b][/color]sold10[color="#8B3E2F"][b],[/b][/color]sold11[color="#8B3E2F"][b],[/b][/color]sold12[color="#8B3E2F"][b],[/b][/color]sold13[color="#8B3E2F"][b],[/b][/color]sold14[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_mecan[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold15[color="#8B3E2F"][b],[/b][/color]sold16[color="#8B3E2F"][b],[/b][/color]sold17[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_all[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#1874CD"]_tropa[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#1874CD"]_mecan[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#8B3E2F"][b][[/b][/color]oficial1[color="#8B3E2F"][b],[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]removeAllWeapons[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeVest[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeUniform[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeHeadgear[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_all[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]unassignItem[/b][/color] [color="#7A7A7A"]"NVGoggles"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]removeItem[/b][/color] [color="#7A7A7A"]"NVGoggles"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_guard[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform_tshirt"[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]addVest[/b][/color] [color="#7A7A7A"]"V_Rangemaster_belt"[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]addHeadgear[/b][/color] [color="#7A7A7A"]"H_MilCap_dgtl"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addVest[/b][/color] [color="#7A7A7A"]"V_TacVest_oli"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addHeadgear[/b][/color] [color="#7A7A7A"]"H_Booniehat_indp"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#1874CD"]_tropa[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform_shortsleeve"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_mecan[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]![/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]daytime[/b][/color] [color="#8B3E2F"][b]<[/b][/color] [color="#FF0000"]5[/color] [color="#8B3E2F"][b]&[/b][/color][color="#8B3E2F"][b]&[/b][/color] [color="#191970"][b]daytime[/b][/color] [color="#8B3E2F"][b]>[/b][/color] [color="#FF0000"]19[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addItem[/b][/color] [color="#7A7A7A"]"NVGoggles_INDEP"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]assignItem[/b][/color] [color="#7A7A7A"]"NVGoggles_INDEP"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_guard[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addWeaponGlobal[/b][/color] [color="#7A7A7A"]"srifle_EBR_ARCO_pointer_F"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [/color] Made with KK's SQF to BBCode Converter Thanks for your help.
-
I need to change the default uniforms for some soldiers on the map to new ones given by me. Now the soldiers spawns without any uniform, vest, weapon or goggles. Sorry if I didn't understand all you say me, my english isn't very good. Thanks for your help. At now the only soldier with working code is the "official1" unit. [color="#FF8040"][color="#191970"][b]private[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"_guard"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_tropa"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_mecan"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_all"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold1[color="#8B3E2F"][b],[/b][/color]sold2[color="#8B3E2F"][b],[/b][/color]sold3[color="#8B3E2F"][b],[/b][/color]sold4[color="#8B3E2F"][b],[/b][/color]sold5[color="#8B3E2F"][b],[/b][/color]sold6[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_tropa[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold8[color="#8B3E2F"][b],[/b][/color]sold9[color="#8B3E2F"][b],[/b][/color]sold10[color="#8B3E2F"][b],[/b][/color]sold11[color="#8B3E2F"][b],[/b][/color]sold12[color="#8B3E2F"][b],[/b][/color]sold13[color="#8B3E2F"][b],[/b][/color]sold14[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_mecan[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color]sold15[color="#8B3E2F"][b],[/b][/color]sold16[color="#8B3E2F"][b],[/b][/color]sold17[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_all[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#1874CD"]_tropa[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#1874CD"]_mecan[/color] [color="#8B3E2F"][b]+[/b][/color] [color="#8B3E2F"][b][[/b][/color]oficial1[color="#8B3E2F"][b],[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]removeAllWeapons[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeVest[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeUniform[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeHeadgear[/b][/color] [color="#000000"]_x[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_all[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]unassignItem[/b][/color] [color="#7A7A7A"]"NVGoggles"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]removeItem[/b][/color] [color="#7A7A7A"]"NVGoggles"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_guard[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform_tshirt"[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]addVest[/b][/color] [color="#7A7A7A"]"V_Rangemaster_belt"[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]addHeadgear[/b][/color] [color="#7A7A7A"]"H_MilCap_dgtl"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addVest[/b][/color] [color="#7A7A7A"]"V_TacVest_oli"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addHeadgear[/b][/color] [color="#7A7A7A"]"H_Booniehat_indp"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_tropa[/color][color="#8B3E2F"][b],[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform_shortsleeve"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_mecan[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]![/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]daytime[/b][/color] [color="#8B3E2F"][b]<[/b][/color] [color="#FF0000"]5[/color] [color="#8B3E2F"][b]&[/b][/color][color="#8B3E2F"][b]&[/b][/color] [color="#191970"][b]daytime[/b][/color] [color="#8B3E2F"][b]>[/b][/color] [color="#FF0000"]19[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addItem[/b][/color] [color="#7A7A7A"]"NVGoggles_INDEP"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]assignItem[/b][/color] [color="#7A7A7A"]"NVGoggles_INDEP"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_guard[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addWeaponGlobal[/b][/color] [color="#7A7A7A"]"srifle_EBR_ARCO_pointer_F"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color]sold7[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color][/color] Made with KK's SQF to BBCode Converter
-
Hello. I need some help. What is wrong in this code? [color="#FF8040"] [color="#191970"][b]private[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"_guard"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_tropa"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_mecan"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_all"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_guard[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"sold1"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold2"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold3"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold4"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold5"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold6"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_tropa[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"sold8"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold9"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold10"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold11"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold12"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold13"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold14"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_mecan[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"sold15"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold16"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold17"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_all[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_tropa[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_mecan[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"oficial1"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold7"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]removeAllWeapons[/b][/color] [color="#1874CD"]_all[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeVest[/b][/color] [color="#1874CD"]_all[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeUniform[/b][/color] [color="#1874CD"]_all[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]removeHeadgear[/b][/color] [color="#1874CD"]_all[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_all[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_guard[/color] [color="#191970"][b]unassignItem[/b][/color] [color="#7A7A7A"]"NVGoggles"[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_guard[/color] [color="#191970"][b]removeItem[/b][/color] [color="#7A7A7A"]"NVGoggles"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_guard[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform_tshirt"[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]addVest[/b][/color] [color="#7A7A7A"]"V_Rangemaster_belt"[/color][color="#8B3E2F"][b];[/b][/color] oficial1 [color="#191970"][b]addHeadgear[/b][/color] [color="#7A7A7A"]"H_MilCap_dgtl"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_tropa[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold7"[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_tropa[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold7"[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]addVest[/b][/color] [color="#7A7A7A"]"V_TacVest_oli"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_tropa[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold7"[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]addHeadgear[/b][/color] [color="#7A7A7A"]"H_Booniehat_indp"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_tropa[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold7"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_mecan[/color] [color="#191970"][b]forceAddUniform[/b][/color] [color="#7A7A7A"]"U_I_CombatUniform_shortsleeve"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_mecan[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]![/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]daytime[/b][/color] [color="#8B3E2F"][b]<[/b][/color] [color="#FF0000"]5[/color] [color="#8B3E2F"][b]&[/b][/color][color="#8B3E2F"][b]&[/b][/color] [color="#191970"][b]daytime[/b][/color] [color="#8B3E2F"][b]>[/b][/color] [color="#FF0000"]19[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b]{[/b][/color] this [color="#191970"][b]addItem[/b][/color] [color="#7A7A7A"]"NVGoggles_INDEP"[/color][color="#8B3E2F"][b];[/b][/color] this [color="#191970"][b]assignItem[/b][/color] [color="#7A7A7A"]"NVGoggles_INDEP"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#1874CD"]_guard[/color][color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addMagazineGlobal[/b][/color] [color="#7A7A7A"]"20Rnd_762x51_Mag"[/color][color="#8B3E2F"][b];[/b][/color] [color="#000000"]_x[/color] [color="#191970"][b]addWeaponGlobal[/b][/color] [color="#7A7A7A"]"srifle_EBR_ARCO_pointer_F"[/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#191970"][b]forEach[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_guard[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sold7"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [/color] Made with KK's SQF to BBCode Converter
-
Units random positioning without repeating position
dan3ko replied to dan3ko's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I try both and only spawns 1 unit. I try with more spots and more units but in all cases only spawns 1 unit. In the mission.sqm i have five markers named spot1, spot2, spot3, ... And a trigger to activate the script. -
Units random positioning without repeating position
dan3ko replied to dan3ko's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Wow, thank you very much. I hope to get to your level someday. -
Units random positioning without repeating position
dan3ko posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello. I'm making one of my first scripts and need some help. The scenario is a CQC circuit, and need to spawn enemy units on specific spots (resolved). But at certain cases the two units spawns on the same spot and I didn't want this. My knowledge of scripting is very limited so I think in this site for searching help. My code: [color="#FF8040"][color="#1874CD"]_cnt[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#191970"][b]createCenter[/b][/color] [color="#000000"]east[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_room1[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"spot1"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"spot2"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"spot3"[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_selectRandom[color="#8B3E2F"][b];[/b][/color] grp1 [color="#8B3E2F"][b]=[/b][/color] [color="#191970"][b]createGroup[/b][/color] [color="#000000"]east[/color][color="#8B3E2F"][b];[/b][/color] grp1 [color="#191970"][b]setBehaviour[/b][/color] [color="#7A7A7A"]"AWARE"[/color][color="#8B3E2F"][b];[/b][/color] grp1 [color="#191970"][b]setCombatMode[/b][/color] [color="#7A7A7A"]"yellow"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"I_G_resistanceCommander_F"[/color] [color="#191970"][b]createUnit[/b][/color] [color="#8B3E2F"][b][[/b][/color] [color="#191970"][b]getMarkerPos[/b][/color] [color="#1874CD"]_room1[/color][color="#8B3E2F"][b],[/b][/color] grp1[color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]""[/color][color="#8B3E2F"][b],[/b][/color] [color="#FF0000"]0.6[/color][color="#8B3E2F"][b],[/b][/color] [color="#7A7A7A"]"corporal"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] grp2 [color="#8B3E2F"][b]=[/b][/color] [color="#191970"][b]createGroup[/b][/color] [color="#000000"]east[/color][color="#8B3E2F"][b];[/b][/color] grp2 [color="#191970"][b]setBehaviour[/b][/color] [color="#7A7A7A"]"AWARE"[/color][color="#8B3E2F"][b];[/b][/color] grp2 [color="#191970"][b]setCombatMode[/b][/color] [color="#7A7A7A"]"yellow"[/color][color="#8B3E2F"][b];[/b][/color] [color="#7A7A7A"]"I_G_resistanceCommander_F"[/color] [color="#191970"][b]createUnit[/b][/color] [color="#8B3E2F"][b][[/b][/color] [color="#191970"][b]getMarkerPos[/b][/color] [color="#1874CD"]_room1[/color][color="#8B3E2F"][b],[/b][/color] grp2[color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]""[/color][color="#8B3E2F"][b],[/b][/color] [color="#FF0000"]0.6[/color][color="#8B3E2F"][b],[/b][/color] [color="#7A7A7A"]"corporal"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [/color] Thanks. -
For my expierence it need to load a bit later than the other items, this works for me: _workaround = this spawn {waitUntil{time > 1}; _this addWeapon "Rangefinder"}; _workaround = this spawn {waitUntil{time > 1}; _this addWeapon "B_UavTerminal"};
-
How can I make to respawn AI unit on my group?
dan3ko posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have make a group of six units, one is the player and other five are AI. I want the AI units respawn when are killed. For this I put this code in the init of each unit: this addeventhandler ["respawn","_this execVM 'AyM\loadout.sqf'"]; But they don't respawn.