Skip to content

EnableScouting

EnableScouting(units?)

Input: Optional units is one actor or a dense array. Without it, the API selects one eligible local scout.

Description: Enables scouting. Use SetUnitStanceAutoScout when your script has already selected the actors.

Output: EnableScouting returns true for queue admission, otherwise false.

Errors: Wrong Lua argument types raise an argument error. If no eligible scout is available, or the selected actors/session/layout are invalid, admission returns false. A tracked receipt gives the rejection reason when available.