Search the Community
Showing results for tags 'script issue'.
Found 1 result
-
Infinite loading screen - Script Issue
J. Yssing posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi All Im making a script for a milsim unit i play with, and the script i made causes infinite loading screens, so far i havent been able to uncover the issue. So i hope someone here on A3 forum is able to help. Here is the ammobox init: this addAction ["<t color='#FF7722'>Recruit</t>", "loadouts\Recruit.sqf"]; this addAction ["<t color='#FF7722'>Rifleman UCP</t>", "loadouts\RiflemanUCP.sqf"]; this addAction ["<t color='#FF7722'>Rifleman</t>", "loadouts\Rifleman.sqf"]; this addAction ["<t color='#FF7722'>Anti Tank</t>", "loadouts\AntiTank.sqf"]; this addAction ["<t color='#FF7722'>Combat Engineer</t>", "loadouts\CombatEngineer.sqf"]; this addAction ["<t color='#FF7722'>Combat Medic</t>", "loadouts\CombatMedic.sqf"]; this addAction ["<t color='#FF7722'>Fire Team Leader</t>", "loadouts\FireTeamLeader.sqf"]; this addAction ["<t color='#FF7722'>Squad Leader</t>", "loadouts\SquadLeader.sqf"]; this addAction ["<t color='#FF7722'>Platoon Leader / 2IC</t>", "loadouts\PlatoonLeader.sqf"]; this addAction ["<t color='#FF7722'>MG M249</t>", "loadouts\MGM249.sqf"]; this addAction ["<t color='#FF7722'>MG M240</t>", "loadouts\MGM240.sqf"]; this addAction ["<t color='#FF7722'>Marksman</t>", "loadouts\Marksman.sqf"]; this addAction ["<t color='#FF7722'>Flight Medic</t>", "loadouts\FlightMedic.sqf"]; this addAction ["<t color='#FF7722'>Heli Pilot</t>", "loadouts\Pilot.sqf"]; this addAction ["<t color='#FF7722'>Jet Pilot</t>", "loadouts\JetPilot.sqf"]; The pupose is to make a box will all loadouts preset so a new player just have to mousewheel select class then boom all the required equipment to survive an operation. Here is the script for RiflemanUCP.sqf clearAllItemsFromBackpack player; clearBackpackCargo player; removeAllWeapons player; removeAllItems player; removeAllAssignedItems player; removeUniform player; removeVest player; removeBackpack player; removeHeadgear player; removeGoggles player; {player unassignItem _x;player removeItem _x} forEach assignedItems player; comment "Add containers"; player forceAddUniform "rhs_uniform_cu_ucp_101st"; for "_i" from 1 to 6 do {player addItemToUniform "ACE_fieldDressing";}; for "_i" from 1 to 6 do {player addItemToUniform "ACE_elasticBandage";}; for "_i" from 1 to 2 do {player addItemToUniform "ACE_CableTie";}; player addItemToUniform "ACE_EarPlugs"; for "_i" from 1 to 2 do {player addItemToUniform "ACE_epinephrine";}; player addItemToUniform "ACE_Flashlight_MX991"; player addItemToUniform "ItemcTabHCam"; player addItemToUniform "ACE_IR_Strobe_Item"; player addItemToUniform "ACE_MapTools"; for "_i" from 1 to 2 do {player addItemToUniform "ACE_morphine";}; for "_i" from 1 to 8 do {player addItemToUniform "ACE_packingBandage";}; for "_i" from 1 to 4 do {player addItemToUniform "ACE_tourniquet";}; player addVest "rhsusf_iotv_ucp_Rifleman"; for "_i" from 1 to 8 do {player addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";}; for "_i" from 1 to 2 do {player addItemToVest "rhsusf_mag_15Rnd_9x19_JHP";}; for "_i" from 1 to 4 do {player addItemToVest "rhs_mag_an_m8hc";}; player addItemToVest "rhs_mag_m18_green"; player addItemToVest "rhs_mag_m18_red"; for "_i" from 1 to 2 do {player addItemToVest "rhs_mag_m67";}; for "_i" from 1 to 2 do {player addItemToVest "Chemlight_green";}; for "_i" from 1 to 2 do {player addItemToVest "ACE_Chemlight_HiRed";}; player addItemToVest "ACE_HandFlare_Green"; player addItemToVest "ACE_HandFlare_Red"; player addBackpack "rhsusf_assault_eagleaiii_ucp"; player addItemToBackpack "rhsusf_ANPVS_14"; player addItemToBackpack "Mask_M50"; player addItemToBackpack "murshun_cigs_cigpack"; player addItemToBackpack "murshun_cigs_matches"; player addHeadgear "rhsusf_ach_helmet_ucp"; player addGoggles "rhs_googles_clear"; comment "Add weapons"; player addWeapon "rhs_weap_m4a1_grip3"; player addPrimaryWeaponItem "rhsusf_acc_SF3P556"; player addPrimaryWeaponItem "rhsusf_acc_anpeq15_bk"; player addPrimaryWeaponItem "rhsusf_acc_ACOG"; player addPrimaryWeaponItem "rhsusf_acc_grip3"; player addWeapon "rhsusf_weap_m9"; player addWeapon "Binocular"; comment "Add items"; player linkItem "ItemMap"; player linkItem "ItemCompass"; player linkItem "ItemWatch"; player linkItem "tf_anprc152_3"; player linkItem "ItemAndroid"; comment "Set identity"; player setSpeaker "ACE_NoVoice"; Hope someone is able to find my error. Looking forward to your response.