云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 流年饥荒控制台指令大全+物品大全+服务器管理命令大全 - 图文

流年饥荒控制台指令大全+物品大全+服务器管理命令大全 - 图文

  • 62 次阅读
  • 3 次下载
  • 2025/12/12 5:29:07

----------------锁定san-------------------

function c_maintainsanity(player, percent) player = player or ConsoleCommandPlayer() if player.debug_maintainsanitytask ~= nil then

player.debug_maintainsanitytask:Cancel() end

player.debug_maintainsanitytask = player:DoPeriodicTask(3, inst.components.sanity:SetPercent(percent or 1) end) end

----------------锁定饥饿-------------------

function c_maintainhunger(player, percent) player = player or ConsoleCommandPlayer() if player.debug_maintainhungertask ~= nil then

player.debug_maintainhungertask:Cancel() end

player.debug_maintainhungertask = player:DoPeriodicTask(3, inst.components.hunger:SetPercent(percent or 1) end) end

---------------锁定温度--------------------

function c_maintaintemperature(player, temp) player = player or ConsoleCommandPlayer() if player.debug_maintaintemptask ~= nil then

player.debug_maintaintemptask:Cancel() end

player.debug_maintaintemptask = player:DoPeriodicTask(3, inst.components.temperature:SetTemperature(temp or 25) end) end

---------------锁定湿度--------------------

function c_maintainmoisture(player, percent) player = player or ConsoleCommandPlayer()

if player.debug_maintainmoisturetask ~= nil then

player.debug_maintainmoisturetask:Cancel() end

player.debug_maintainmoisturetask = player:DoPeriodicTask(3, inst.components.moisture:SetPercent(percent or 0) end) end

--------------锁定以上所有---------------------

-- Use this instead of godmode if you still want to see deltas and things function c_maintainall(player)

player = player or ConsoleCommandPlayer() c_maintainhealth(player) c_maintainsanity(player) c_maintainhunger(player)

c_maintaintemperature(player)

12

function(inst)

function(inst)

function(inst)

function(inst)

c_maintainmoisture(player) end

c_maintainall()

------------取消锁定----------------------- function c_cancelmaintaintasks(player) player = player or ConsoleCommandPlayer() if player.debug_maintainhealthtask ~= nil then

player.debug_maintainhealthtask:Cancel() player.debug_maintainhealthtask = nil end

if player.debug_maintainsanitytask ~= nil then

player.debug_maintainsanitytask:Cancel() player.debug_maintainsanitytask = nil end

if player.debug_maintainhungertask ~= nil then

player.debug_maintainhungertask:Cancel() player.debug_maintainhungertask = nil end

if player.debug_maintaintemptask ~= nil then

player.debug_maintaintemptask:Cancel() player.debug_maintaintemptask = nil end

if player.debug_maintainmoisturetask ~= nil then

player.debug_maintainmoisturetask:Cancel() player.debug_maintainmoisturetask = nil end end

-------------未知---------------------- function c_removeallwithtags(...)

for k,ent in pairs(Ents) do for i,tag in ipairs(arg) do if ent:HasTag(tag) then ent:Remove() break end end end end

----------------------------------- ----------------------------------- -----------------------------------

13

三、高级控制台命令:请自行翻译

Get a certain player AllPlayers[number]

AllPlayers[1] will get ThePlayer if you are the host. Other players should have numbers as shown on the scoreboard (In certain situations, the number may be wrong. You can be more precise by using c_listallplayers() first to see the username and character for each player number.). Most of ThePlayer commands can be used with AllPlayers[number] instead of ThePlayer.

Apply a command to all players

for k,v in pairs(AllPlayers) do command end

Replace command with another command, using \\

Move another player

c_move(AllPlayers[number])

Moves the player to the cursor position. c_move(AllPlayers[1]) Kill a player

AllPlayers[number]:PushEvent('death') Kills the player.

Resurrect a player

AllPlayers[number]:PushEvent('respawnfromghost') Resurrects the player.

AllPlayers[number]:PushEvent('respawnfromghost') Teleport to a player

c_goto(AllPlayers[number])

Teleports you to to the player corresponding to the player number from c_listallplayers().

Return a player to character select c_despawn(AllPlayers[number])

Note that this will delete their items, so it is recommended that you kill them first to drop their items.

World commandsEdit Teleport to Prefab c_gonext(\

After pressing enter, it teleports you to the first numerical instance of the named prefab. If multiple iterations of the prefab exist, a list of the entity numbers will be displayed in the console log, and each subsequent execution of the same command will transport the player from entity to entity in the order they were generated in the world.

14

Delete Item Under Mouse

TheInput:GetWorldEntityUnderMouse():Remove() c_select() c_sel():Remove()

After pressing enter, it deletes the item under your mouse. Use the second command on dedicated servers, the first command will not work.

Reveal Map

TheWorld.minimap.MiniMap:ShowArea(0,0,0,10000)

Note that this is a local command, but will not work if you are a client.

Skip day

?TheWorld:PushEvent(\

Skips the current day. Change the value to skip more days or parts of days (e.g. 16*30*4.5 to skip 4.5 days) WARNING: Too big values may freeze the game. (Depending on computer speed)

Skip time

TheWorld.net.components.clock:OnUpdate(16*30*x)

Skips the current day. Change x to skip more days or parts of days (e.g. 16*30*4.5 to skip 4.5 days) WARNING: Too big values may freeze the game. (Depending on computer speed)

Skip time units and update LongUpdate(X)

Skips X time units and performs the \

Note: There are 30 time units per segment. To skip a whole day one can either use LongUpdate(480) or use multiplicative values such as LongUpdate(X*16*30) or LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip.

Skip phase

TheWorld:PushEvent(\Skips the current phase.

Set segments

TheWorld:PushEvent(\

Sets amount of segments. Errors if x + y + z adds up to over 16. Note that this will get reset the next day. Example:

TheWorld:PushEvent(\

Very long day, very short dusk and night (one segment for dusk and one for night)

Set season segments

?TheWorld:PushEvent(\{summer={day=sx,dusk=sy,night=sz},

15

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

----------------锁定san------------------- function c_maintainsanity(player, percent) player = player or ConsoleCommandPlayer() if player.debug_maintainsanitytask ~= nil then player.debug_maintainsanitytask:Cancel() end player.debug_maintainsanitytask = player:DoPeriodicTask(3, inst.components.sanity:SetPercent(percent or 1) end) end ----------------锁定饥饿---

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com