Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Get unit description / actual unit type

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Get unit description / actual unit type Page: [1]
Login
Message << Older Topic   Newer Topic >>
Get unit description / actual unit type - 7/10/2018 5:08:48 AM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
Is it possible to get what the actual unit is? not just the name or dbid but the actual thing it is - like `MiG-29K Fulcrum D - 2015` or `SSBN 726 Ohio - 1992, Trident C4`.
I am logging losses to the luahistory log and want to know what the lost unit is - all I can get is something like `Lightning #2, Type: Aircraft`, but the name doesn't have much to do with what it actually is - or at least not always.

For Contact I see `type_description` which sounds promising, but that doesn't exist on Unit.

In the normal log it does show what the unit is ` Lightning #2 (F-35A Lightning II) has been destroyed!`. That is what I am trying to get.

I didn't see a way to convert a dbid into a description either.
Post #: 1
RE: Get unit description / actual unit type - 7/31/2018 6:07:56 AM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
this is in the unit wrapper now - classname. As of 998.10

Thanks!

(in reply to Whicker)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Get unit description / actual unit type Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.703