TARGET_SELECTION

this callback is called right before target selection is run and allows to override various stuff

passed into the callback is:

local function on_target_selection(ctx, cmd, unpredicted_data)
    -- ignore the player with index 3
    ctx:ignore_target(3)
end

callbacks.add(e_callbacks.TARGET_SELECTION, on_target_selection)

Last updated