ED Forums - View Single Post - RN-24/28 Classnames?
View Single Post
Old 07-11-2019, 11:00 PM   #2
Grimes
ED Testers Team
 
Grimes's Avatar
 
Join Date: Jan 2006
Location: Black Mesa
Posts: 7,975
Default

Its a little weird.

"weapons.bombs.RN-24" and "weapons.bombs.RN-28" for the type name

For display name it is more normal as "RN-24" and "RN'-28".

A good way to figure it out is to iterate through Unit.getAmmo() for a given unit.

So something like:

Code:
local ammo = Unit.getByName('whatever'):getAmmo()
for i = 1, #ammo do
  env.info(ammo[i].desc.typeName)
  env.info(ammo[i].desc.displayName)
end
__________________
You can only tie the world record for lowest flight.
Current Projects: Scripting Wiki, Something...
Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread), SLMOD for DCS 1.5/2.0, IADScript, Mission Editing Wiki!, Mission Building Forum
Grimes is offline   Reply With Quote