Contact and Unit guids

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
jkgarner
Posts: 175
Joined: Thu Apr 30, 2020 12:42 pm

Contact and Unit guids

Post by jkgarner »

Here is a crazy question:

If I have a contact, with a name, status and guid, is there any way to get to the guid of the underlying (represented) unit?


boogabooga
Posts: 1021
Joined: Wed Jul 18, 2018 12:05 am

RE: Contact and Unit guids

Post by boogabooga »

Yes, it's a property of the contact wrapper called actualunitid
The boogabooga doctrine for CMO: Any intentional human intervention needs to be able to completely and reliably over-ride anything that the AI is doing at any time.
jkgarner
Posts: 175
Joined: Thu Apr 30, 2020 12:42 pm

RE: Contact and Unit guids

Post by jkgarner »

Thanks, I thought there was something, but I could not find it in the documentation.

Cheers![:)]
boogabooga
Posts: 1021
Joined: Wed Jul 18, 2018 12:05 am

RE: Contact and Unit guids

Post by boogabooga »

Check the documentation for the contact wrapper:

http://commandlua.github.io/#wrapper_Contact
The boogabooga doctrine for CMO: Any intentional human intervention needs to be able to completely and reliably over-ride anything that the AI is doing at any time.
Post Reply

Return to “Lua Legion”