To copy the image from one unit to another (for example, while coping a unit), use the command unit/update_image:
svc=unit/update_image¶ms={"itemId":<long>, "oldItemId":<long>}
Name | Description |
---|---|
itemId | new unit ID |
oldItemId | old unit ID |
{} /* empty object if execution successful, if not - error code */