KokaKolaA3 394 Posted October 3, 2015 I want to make something like a Shop, but without paying, what is wrong with it? If i selected an Loadout Ingame, nothing happends, is there maybe a problem with "this" (Sorry for my bad English) Init of KI: this allowdamage false; this enablesimulation false; this addAction ["Equip as <t color='#FF0000'>Soldier City</t>", "soldier.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Woodland</t>", "w_soldier.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Anti-Tank</t>", "soldier_at.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Anti-Tank Woodland</t>", "w_soldier_at.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Patrol</t>", "soldier_patrol.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Patrol</t>", "w_soldier_patrol.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Sniper Light</t>", "soldier_sniper_light.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Sniper Light Woodland</t>", "w_soldier_sniper_light.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Sniper Heavy</t>", "soldier_sniper_heavy.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Sniper Heavy Woodland</t>", "w_soldier_sniper_heavy.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Pilot Helicopter</t>", "soldier_pilot_helicopter.sqs"]; this addAction ["Equip as <t color='#FF0000'>Soldier Pilot Jet</t>", "soldier_pilot_jet.sqs"]; One of the scripts(sqf): removeAllWeapons this; removeAllItems this; removeAllAssignedItems this; removeUniform this; removeVest this; removeBackpack this; removeHeadgear this; removeGoggles this; this forceAddUniform "USAF_SFS_Uniform_ABU_HeavyWeaponsMember"; this addItemToUniform "FirstAidKit"; this addItemToUniform "Chemlight_green"; this addVest "USAF_SFS_PlateCarrier_ABU"; for "_i" from 1 to 16 do {this addItemToVest "ffaa_556x45_g36";}; this addBackpack "USAF_SFS_Carryall_ABU"; for "_i" from 1 to 5 do {this addItemToBackpack "ffaa_mag_c90";}; for "_i" from 1 to 9 do {this addItemToBackpack "ffaa_556x45_g36";}; this addHeadgear "USAF_SFS_Helmet2_ABU"; this addGoggles "TRYK_kio_balaclava_BLK"; this addWeapon "ffaa_armas_hkg36e_normal"; this addPrimaryWeaponItem "ffaa_optic_g36_holo"; this addWeapon "ffaa_armas_c90"; this linkItem "ItemMap"; this linkItem "ItemCompass"; this linkItem "tf_microdagr"; this linkItem "tf_anprc152_6"; this linkItem "pmc_earpiece"; Share this post Link to post Share on other sites
cosmic10r 2325 Posted October 3, 2015 this addAction ["Equip as <t color='#FF0000'>Soldier Pilot Jet</t>", "soldier_pilot_jet.sqs"]; is that actually an sqs file? or is it an sqf and the addactions are calling a sqs? Share this post Link to post Share on other sites
R3vo 2652 Posted October 3, 2015 You seem to confuse sqf with sqs, check if the file types are correct. Share this post Link to post Share on other sites
Larrow 2801 Posted October 4, 2015 this allowDamage false; this disableAI "MOVE"; this addAction ["Equip as <t color='#FF0000'>Soldier City</t>", "soldier.sqf"]; //soldier.sqf params[ "_target", "_caller", "_ID", "_arguments" ]; removeAllWeapons _caller; removeAllItems _caller; removeAllAssignedItems _caller; removeUniform _caller; removeVest _caller; removeBackpack _caller; removeHeadgear _caller; removeGoggles _caller; _caller forceAddUniform "USAF_SFS_Uniform_ABU_HeavyWeaponsMember"; //etc Share this post Link to post Share on other sites
KokaKolaA3 394 Posted October 6, 2015 Thank you so much! Share this post Link to post Share on other sites