fin_soldier 82 Posted June 24, 2021 Hello, I have no idea where to find the names for Muzzles. I'm trying to BIS_fnc_fire a 40mm flare through a unit, but I can only find magazine classnames and muzzles seem to be a mystery. None of these work: [dude, "F_40mm_Red"] call BIS_fnc_fire; [dude, "UGL_FlareRed_F"] call BIS_fnc_fire; Thanks in advance! Share this post Link to post Share on other sites
Schatten 284 Posted June 24, 2021 @fin_soldier, weapon muzzles can be found here: configFile >> "CfgWeapons" >> _weaponClassName >> "muzzles" 1 Share this post Link to post Share on other sites
sarogahtyp 1108 Posted June 24, 2021 _weapon = currentWeapon dude; _all_muzzles_of_weapon = getArray ( configFile >> "CfgWeapons" >> _weapon >> "Muzzles" ); copyToClipboard str _all_muzzles_of_weapon; hint str _all_muzzles_of_weapon; systemChat str _all_muzzles_of_weapon; diag_log _all_muzzles_of_weapon; 1 Share this post Link to post Share on other sites
fin_soldier 82 Posted June 28, 2021 On 6/24/2021 at 6:02 PM, sarogahtyp said: _weapon = currentWeapon dude; _all_muzzles_of_weapon = getArray ( configFile >> "CfgWeapons" >> _weapon >> "Muzzles" ); copyToClipboard str _all_muzzles_of_weapon; hint str _all_muzzles_of_weapon; systemChat str _all_muzzles_of_weapon; diag_log _all_muzzles_of_weapon; I'm not sure where things went wrong, but the code gives an error both through debug console and init.sqf: Share this post Link to post Share on other sites
sarogahtyp 1108 Posted June 28, 2021 Check ur copy-pasted code for invisible characters and show error messages out of the .rpt file but not as screenshot. https://community.bistudio.com/wiki/Crash_Files 1 Share this post Link to post Share on other sites
fin_soldier 82 Posted June 28, 2021 5 minutes ago, sarogahtyp said: Check ur copy-pasted code for invisible characters and show error messages out of the .rpt file but not as screenshot. https://community.bistudio.com/wiki/Crash_Files Thank you! Strangely when I typed in the same code, it worked perfectly. But copying and pasting code from the forums seems to make things strange. 1 Share this post Link to post Share on other sites