Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Lua question: How to determine GUID

 
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 question: How to determine GUID Page: [1]
Login
Message << Older Topic   Newer Topic >>
Lua question: How to determine GUID - 1/3/2016 7:02:47 AM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
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?
Post #: 1
RE: Lua question: How to determine GUID - 1/3/2016 11:40:24 AM   
mx1

 

Posts: 76
Joined: 1/16/2014
Status: offline
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.


(in reply to Rory Noonan)
Post #: 2
RE: Lua question: How to determine GUID - 1/3/2016 12:13:21 PM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
Fantastic. Thanks very much!!!

(in reply to mx1)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua question: How to determine GUID 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

1.094