SetUnitStanceGuard¶
SetUnitStanceGuard(units, target) · SetUnitStanceGuardTracked(units, target)
Inputs: units is one actor or a dense array; target is the object to
guard.
Description: Requests a guard order. The tracked form revalidates the
target and reports invalid-target if it disappears. There is no public
append option.
Output: SetUnitStanceGuard returns true for queue admission, otherwise
false. SetUnitStanceGuardTracked returns accepted, receipt.
Errors: Wrong Lua argument types raise an argument error. Invalid actors or a
lost target reject; the tracked reason is invalid-target when the target
disappears. A tracked receipt gives the rejection reason when available.