Jump to content

Recommended Posts

Thanks. I looked into SGwilson and it adds "notarget" tag. However this won't work if the enemies are already targetting you so you'd have to "droptargets" like in armor_slurtleshell.lua:

Quote

local pt = inst:GetPosition()
    local ents = TheSim:FindEntities(pt.x, pt.y, pt.z, 15)

    for k,v in pairs(ents) do
        if v.components.combat and v.components.combat.target and v.components.combat.target == owner then
            v.components.combat:SetTarget(nil)
        end
    end

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...