下载客户端

饥荒 2026款饥荒工厂3.电羊工厂

2025-09-30 19:12:35
转载

导读

本文是饥荒游戏饥荒工厂系列第三期,分享2026款饥荒电羊工厂的建造玩法,讲解了电羊工厂的建造思路,还分享了建造用到的饥荒控制台代码,可实现电羊的自动刷新获取,帮助饥荒玩家搭建自动化资源工厂。

用到的控制台代码local d="lightninggoatherd" local r="reticuleaoesummontarget_1" local p=ThePlayer if p then local q,_,e=p.Transform:GetWorldPosition() local c,m=nil,math.huge for k=1,500 do local s=c_selectnext(d) if not s then break end local x,_,z=s.Transform:GetWorldPosition() local j=(x-q)^2+(z-e)^2 if j<m then m=j c=s end end if c then if c.t then c.t:Cancel() end c.t=c:DoPeriodicTask(1,function() local x,_,z=c.Transform:GetWorldPosition() c_removeall(r) c_spawn(r).Transform:SetPosition(x,0,z) end)end end

评论

共0条评论
face
inputImg
相关阅读
最新更新

最新更新