MarkTarget

Mark target with smoke, laser, or coordinates

Usage: Used in 17 task(s)

Lua Implementation

-- Mark Target
function execute(params)
    local targetLoc = params.target_location

    if targetLoc then
        -- Send marking message
        vrf.sendMessage{
            sender = this,
            receivers = params.receivers or {this:getSuperior()},
            messageType = "TARGET_MARK",
            messageBody = {
                location = targetLoc,
                mark_type = params.mark_type or "coordinates",
                target_description = params.description
            }
        }
        return true
    end
    return false
end