游民星空 > 攻略秘籍 > 攻略 > 正文

饥荒 全人物解锁及主角自动回血等实用修改教程

2015-01-21 11:28:46 来源:互联网 作者:易宁 我要投稿

第118页:机器可携带

展开

一一八.机器可携带

  1.用记事本打开游戏目录\data\DLC0001\scripts\prefabs\scienceprototyper.lua文件,将MakeObstaclePhysics(inst, .4)替换为以下内容:

  local function turnon(inst)

  inst.components.machine.ison = true

  inst:AddComponent("inventoryitem")

  end

  local function turnoff(inst)

  inst.components.machine.ison = false

  inst:RemoveComponent("inventoryitem")

  end

  inst:AddComponent("machine")

  inst.components.machine.turnonfn = turnon

  inst.components.machine.turnofffn = turnoff

  inst:AddComponent("equippable")

  2.用记事本打开游戏目录\data\DLC0001\scripts\prefabs\magicprototyper.lua文件,将MakeObstaclePhysics(inst, .4)替换为以下内容:

  local function turnon(inst)

  inst.components.machine.ison = true

  inst:AddComponent("inventoryitem")

  end

  local function turnoff(inst)

  inst.components.machine.ison = false

  inst:RemoveComponent("inventoryitem")

  end

  inst:AddComponent("machine")

  inst.components.machine.turnonfn = turnon

  inst.components.machine.turnofffn = turnoff

  inst:AddComponent("equippable")

  即可在机器上按鼠标右键解除固定,再按鼠标左键点击即可带在身上。想固定机器时,将机器放在地上,在机器上按鼠标右键即可固定在地上

更多相关内容请关注:饥荒专区

责任编辑:Shy夏夏

上一页 111 112 113 114 115 116 117 118 119 120 121 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

文章内容导航
游民星空APP
随手浏览游戏攻略
code
攻略合集
单机游戏下载
休闲娱乐
综合热点资讯
游民星空联运游戏