whitevo
Feeling good, thats what I do.
I made function in LUA what is used to make monsters to ignore certain players.
However if player if player is visible to monster(not ghost mode) and is the only target Monster has, then it still follows them. Is there any non-source edit way to make monsters completely ignore regular player?
Function:
However if player if player is visible to monster(not ghost mode) and is the only target Monster has, then it still follows them. Is there any non-source edit way to make monsters completely ignore regular player?
Function:
Code:
function checkTargets(monster) -- replace targetList, because Created monsters see everybody in server in some reason..
local targetList = monster:getTargetList()
local monsterID = monster:getId()
Uprint(targetList, "before")
for i, target in pairs(targetList) do
if target:isPlayer() then
if target:getStorageValue(SV.playerIsDead) == 1 and target:getStorageValue(SV.fakedeathOutfit) == 1 then
targetList[i] = nil
end
end
if tauntedCreatures[monsterID] then
if target:getId() ~= tauntedCreatures[monsterID] then
targetList[i] = nil
end
end
if ghostProtectionZone(monster, target) then
targetList[i] = nil
end
end
Uprint(targetList, "after")
creatureEnemies[monsterID] = targetList
end