第370页:猪守卫不主动攻击主角
展开三二零.猪守卫不主动攻击主角
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\pigman.lua文件,
1.将return guy:HasTag("character") and not guy:HasTag("guard")替换为return guy:HasTag("character") and not guy:HasTag("guard") and not guy:HasTag("player")
2.删除下列内容:
if not GetClock():IsDay() and home and home.components.burnable and home.components.burnable:IsBurning() then
local lightThief = FindEntity(home, home.components.burnable:GetLargestLightRadius(), function(guy)
return guy:HasTag("player")
and guy.LightWatcher:IsInLight()
and not (defenseTarget.components.trader and defenseTarget.components.trader:IsTryingToTradeWithMe(guy) )
and not (inst.components.trader and inst.components.trader:IsTryingToTradeWithMe(guy) )
end)
if lightThief then
return lightThief
end
end
即可让猪守卫不主动攻击主角
更多相关内容请关注:饥荒专区
责任编辑:Shy夏夏