about "ScenEdit_SetUnitSide"

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
hanzawa1991
Posts: 74
Joined: Tue Apr 05, 2022 9:05 am

about "ScenEdit_SetUnitSide"

Post by hanzawa1991 »

what's the different between "ScenEdit_GetContacts" and " VP_GetSide"? how to change the side of a unit?

It often appear that "Can not find the unit by guid or name",when i use the "ScenEdit_SetUnitSide"

I noticed that there was a difference between the guid of the unit in R side and B side checks the GUID of the R's unit,Do you know what I mean?
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: about "ScenEdit_SetUnitSide"

Post by michaelm75au »

You can't change the side of a Contact.
"ScenEdit_SetUnitSide" will only work on actual units.

This works as far as I see.

Contacts have a guid, but this is different to the actual unit guid which has all the information on the actual unit.
If you want the real unit guid of a contact, it is available in the wrapper for the contact ( <contact_erapper>.actualunitid)
Michael
Post Reply

Return to “Lua Legion”