Jump to content

Make player invisible (untargettable)?


SenL

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

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...