Page 1 of 1

about "ScenEdit_SetUnitSide"

Posted: Wed Jul 06, 2022 2:00 pm
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?

Re: about "ScenEdit_SetUnitSide"

Posted: Thu Jul 07, 2022 9:14 am
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)