Jump to content
John Douglas

How to view a weapons load for a "class name" ?

Recommended Posts

Hi,

 

While I'm moving forward with my scripting skills, it's two steps forward and one back.  Now I think I need to know how and where I can access the "weapons load" out for "class names", and in particular for example "US_Soldier_B_EP1". Is there a short script I can use, or should I start researching accessing pbo files as detailed here: http://www.armaholic.com/forums.php?m=posts&q=31345

 

Thanks in advance.

 

Share this post


Link to post
Share on other sites

getUnitLoadout won't work in Arma 2 - it is Arma 3 command.

 

You can use this code below to show you the weapon and ammo class names of the unit:

 

this addEventhandler ["fired",{hint format["%1",_this]}]

You just need to put this in the init field of the unit. And when you fire a weapon the hint will pop up in upper right corner of your screen.

Share this post


Link to post
Share on other sites
2 minutes ago, vitamin said:

getUnitLoadout won't work in Arma 2 - it is Arma 3 command.

Completely missed that this is Arma 2 section 😄
Would probably have to script the config lookups yourself.

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

×