首页 > 单机游戏 > 攻略 > 饥荒联机版控制台操作教程,饥荒联机版控制台怎么使用,饥荒联机版如何使用控制台

饥荒联机版控制台操作教程,饥荒联机版控制台怎么使用,饥荒联机版如何使用控制台

攻略 饥荒:联机版 游侠饥荒:联机版 2018-08-03 15:02:09

《饥荒:联机版》相关最新攻略资讯:饥荒联机版控制台操作教程 饥荒联机版控制台怎么使用,资讯来源于游侠网。

  世界与存档类

  重新载入世界,客机可能崩溃(除非用remote命令)。

  c_reset()

  重新生成世界。

  c_regenerateworld()

  重新生成世界片段。

  c_regenerateshard()

  游戏存档。

  c_save()

  关闭服务器,参数为false时不存档,省略或true时存档。

  c_shutdown( true / false)

  回滚,参数为省略或1时只回滚到上一个存档。

  c_rollback(count)

  允许/禁止新人加入。

  TheNet:SetAllowIncomingConnections( true / false )

  广播,宣布你要干的事,比如关机或回滚。

  c_announce("announcement")

  清空讣告(停尸房)。

  ErasePersistentString("morgue")

  清点世界中某个物品的数量,特别用于检测存档好坏(猪王、海象等等等)。

  c_countprefabs("prefab")

  物品创造

  创造两个互通的虫洞,其中worm1与worm2是两个自定义的名称。

  worm1 = c_spawn("wormhole")

  worm2 = c_spawn("wormhole")

  worm1.components.teleporter.targetTeleporter = worm2

  worm2.components.teleporter.targetTeleporter = worm1

  创造驯牛,参数为DEFAULT、RIDER(骑行牛)、ORNERY(战斗牛)、PUDGY(胖乎乎的牛)。

  function spawn_beef(tendency) local beef = c_spawn("beefalo"); beef.components.hunger:DoDelta(400); beef.components.domesticatable:DeltaTendency(tendency, 1); beef:SetTendency(); beef.components.domesticatable.domestication = 1; beef.components.domesticatable:BecomeDomesticated();

endspawn_beef("DEFAULT")

饥荒联机版控制台操作教程,饥荒联机版控制台怎么使用,饥荒联机版如何使用控制台

  其他

  取消仇恨,部分怪物不会对玩家产生仇恨。

  c_makeinvisible()

  设置是否应用动作(移动)预测,默认是应用的,可以在设置里调节,仅对客机有用。

  ThePlayer:EnableMovementPrediction(enable/false)

  暂停饥饿减少。

  ThePlayer.components.hunger:Pause(true)

  把伍迪变成海狸,.01是海狸,1是伍迪。

  ThePlayer.components.beaverness:SetPercent(.01)

  变形,参数分别为x轴、y轴、z轴的变形比例。

  ThePlayer.Transform:SetScale(number,number,number)

  关闭生病。

  TheWorld.topology.overrides.disease_delay = "none"

  神仙操作:all the commands that include "ThePlayer" can be replaced with "AllPlayers[number]" to do it to another player所有命令中的ThePlayer都可以变成AllPlayers[.....],来控制别人。

  for example, i wanted to give creative mode to another player例如,我要让别人的菜单全开

  ThePlayer.components.builder:GiveAllRecipes() is the command to do it to yourself, but if you wanted to give it to someone else,本命令是给自己用的,如果你要给别人。

  lets say the player's index number is 2, so that would be: AllPlayers[2].components.builder.GiveAllRecipes()假如说那人的序号是2,那命令就是这个了。

  another example would be the size changing one:还有一个栗子,是关于变形的。

  ThePlayer.Transform:SetScale(number,number,number) can also be AllPlayers[number].Transform:SetScale(number,number,number)

  this works for all the commands with ThePlayer (i think)这对所有命令有效(我认为)。

  and while im still here, i'd like to point out that for this: 那既然我在这里,我也想指出。c_find("flower").Transform:SetPosition(AllPlayers[number]:GetPosition():Get())

  the c_find("prefab") for this code can also be replaced with c_spawn("prefab") and c_gonext("prefab")

  hope this is very helpful to all you people who host dedicated servers!

  上面这个c_find("flower")也能被其他东西替代。

饥荒联机版控制台操作教程,饥荒联机版控制台怎么使用,饥荒联机版如何使用控制台

  以上就是本次控制台的所有教程,希望能够帮助到各位联机的小伙伴们,如果还有其他问题也可以在我们的专题站中寻找,说不定就能找到你想要的东西,最后祝各位玩家游戏愉快。

查看游戏嘟嘟更多饥荒:联机版攻略

游戏娱乐 搞笑 美女

扫码关注我们