饑荒聯機版控制臺怎么正確使用( 二 )


指令:c_godmode()
⑤設置速度
基礎速度數值為1
指令:c_speed(數值)
例:設置速度為基礎速度的10倍c_speed(10)
3.關于對玩家使用的控制臺指令
①顯示/隱藏界面
顯示或隱藏游戲界面 , 例如物品欄 , 時鐘 , 制作欄之類的
指令:
隱藏GetPlayer().HUD:Hide()
顯示GetPlayer().HUD:Show()
②建筑模式
【饑荒聯機版控制臺怎么正確使用】說白了就是解鎖全科技 , 不過在聯機里有些特殊的東西不能直接制作 , 比如雕塑
聯機里好幾個制作欄還疊到了一起 , 這時需要按“Caps Lock”鍵來選擇制作
指令:GetPlayer().components.builder:GiveAllRecipes()
③設置最大生命 , 饑餓 , 精神
指令:
GetPlayer().components.health:SetMaxHealth(數值)
GetPlayer().components.hunger:SetMax(數值)
GetPlayer().components.sanity:SetMax(數值)
例:設置最大生命為2000GetPlayer().components.health:SetMaxHealth(2000)
④停止饑餓
指令:GetPlayer().components.hunger:Pause(true)
⑤伍迪變成海貍
指令:GetPlayer().components.beaverness:SetPercent(1)
4.關于世界的控制臺指令
①傳送至物體
使用指令后會有一個代碼列表 , 如果是多個物體 , 會按照代碼列表上的順序傳送
指令:c_gonext("代碼")
例:傳送至一只弗牛的旁邊c_gonext("beefalo")
②刪除物體
刪除鼠標下的一個物體
好多人和我說這個指令用不了 , 所以這里需要強調一下那個是"in" , 不是"Ln"
指令:TheInput:GetWorldEntityUnderMouse():Remove()
③地圖全開
在單機里可以看到地圖上所有東西 , 聯機里只能看到地形
代碼:GetWorld().minimap.MiniMap:ShowArea(0,0,0,10000)
④跳時間
跳過一定時間 , 一格時間數值是30
指令:LongUpdate(數值)
例:跳過一天LongUpdate(480)
⑤調到下一時間段
指令:GetClock():NextPhase()
⑥設置時間段
以時鐘的格子為單位 , 一共16個格
指令:GetClock():SetSegs(白天,黃昏,夜晚)
例:設置超長夜晚GetClock():SetSegs(1,1,14)
⑦更改季節
要注意的是 , 原版無DLC只有“夏季”和“冬季” , 所以拿夏季指令而不是秋季指令
指令:
春季GetSeasonManager():StartSpring()
夏季GetSeasonManager():StartSummer()
秋季GetSeasonManager():StartAutumn()
冬季GetSeasonManager():StartWinter()
溫季GetSeasonManager():StartMild()
風季GetSeasonManager():StartWet()
雨季GetSeasonManager():StartGreen()
干季GetSeasonManager():StartDry()
⑧開始/停止下雨
指令:
開始GetSeasonManager():StartPrecip()
停止GetSeasonManager():StopPrecip()
⑨雷擊
指令:GetSeasonManager():DoLightningStrike(Vector3(GetPlayer().Transform:GetWorldPosition()))
⑩火山爆發
指令:GetVolcanoManager():StartEruption(smokeduration,ashduration,firerainduration,firerockspersecond)
5.關于一些其他的控制臺指令
①更換角色
更改當前角色 , 需要重進來實現
指令:GetPlayer().prefab = "角色代碼"
②解鎖人物
指令:
GetPlayer().profile:UnlockCharacter("角色代碼")
GetPlayer().profile:Save()
例:解鎖人物麥斯威爾
GetPlayer().profile:UnlockCharacter("waxwell")
GetPlayer().profile:Save()
③解鎖全部人物
指令:GetPlayer().profile:UnlockEverything()
④清空停尸房
需要重啟游戲
指令:ErasePersistentString("morgue")
以上為常用的幾個控制臺指令 , 對于單機版都可以用 , 聯機版不一定能用

推薦閱讀