PrepareAssault

Prepare for assault on objective

Usage: Used in 9 task(s)

Lua Implementation

-- Prepare Assault
function execute(params)
    local objective = params.objective_location

    -- Move to assault position
    local assaultPos = params.assault_position or objective
    this:addTask("DtGoto", {location = assaultPos})

    -- Set combat posture
    this:setStateProperty("CombatPosture", "assault")
    this:setStateProperty("Objective", objective)

    return true
end