SetUnitCombatStance¶
SetUnitCombatStance(units, stance) · SetUnitCombatStanceTracked(units, stance)
Inputs: units is one actor or a dense array; use a UnitCombatStance
integer from 0..3. The tracked form rejects other values; the ordinary form
converts an integer to the native field.
Description: Requests that combat stance. Use the enum index to find named values.
Output: SetUnitCombatStance returns true for queue admission, otherwise
false. SetUnitCombatStanceTracked returns accepted, receipt.
Errors: Wrong Lua argument types raise an argument error. The tracked form
rejects a stance outside 0..3; actor, layout, and session failures also reject.
The ordinary form converts a Lua integer to the native field. A tracked receipt
gives the rejection reason when available.