Jump to content

Recommended Posts

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

@fin_soldier, weapon muzzles can be found here:

configFile >> "CfgWeapons" >> _weaponClassName >> "muzzles"

 

  • Like 1

Share this post


Link to post
Share on other sites
_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;

 

  • Like 1

Share this post


Link to post
Share on other sites
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:

 

MncwRMh.jpg

Share this post


Link to post
Share on other sites
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.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×