To deactivate/activate units use the command svc=unit/set_active:
svc=unit/set_active¶ms={"itemId":<long>,"active":<bool>}
Name | Description |
---|---|
itemId | unit ID |
active | 0 - deactivation, 1 - activation |
{ "active":<bool>, /* 0- deactivation successfully, 1 - activation successfully, or error code*/ }
|