Lua question: How to determine GUID (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


Rory Noonan -> Lua question: How to determine GUID (1/3/2016 7:02:47 AM)

Wading a bit deeper into Lua... It seems like using the GUID would cut down a lot of repetitive typing work. How do I determine the GUID of a unit or reference point?




mx1 -> RE: Lua question: How to determine GUID (1/3/2016 11:40:24 AM)

You can use GetUnit/GetReferencePoint function from the script console - example:
var = ScenEdit_GetReferencePoint({side='NATO',name='RP-2194'})
print(var.guid)

186a6e85-9be3-4a6b-96bb-32ea33db3c2d


or (for units only) go to menu 'Editor'->'SBR'-> 'Generate Template'. The saved XML file contains guids of all units in the scenario.





Rory Noonan -> RE: Lua question: How to determine GUID (1/3/2016 12:13:21 PM)

Fantastic. Thanks very much!!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.546875