查找下一个
function c_findnext(prefab, radius, inst)
------------------上帝模式------------------------------ function c_godmode()
------------------------------------------------
-------------------超级上帝模式----------------------------- function c_supergodmode()
-------------------查找----------------------------- function c_find(prefab, radius, inst) function c_findtag(tag, radius, inst)
未知命令
function c_gonext(name)
未知命令
function c_printtextureinfo( filename ) function c_simphase(phase)
function c_anim(animname, loop) function c_light(c1, c2, c3)
function c_spawn_ds(prefab, scenario) function c_countprefabs(prefab, noprint) function c_counttagged(tag, noprint)
---------------计算所有物品数量--------------------------------- function c_countallprefabs()
---------------加速 几倍--------------------------------- function c_speedmult(multiplier) c_speedmult(1.5) c_speedmult(1.3) c_speedmult(3)
----------------实验模式-------------------------------- function c_testruins()
ConsoleCommandPlayer().components.builder:UnlockRecipesForTech({SCIENCE = 2, MAGIC = 2})
c_give(\ c_give(\ c_give(\ c_give(\ c_give(\ c_give(\ c_give(\ c_give(\ c_give(\
8
c_give(\ c_give(\ c_give(\ c_give(\ c_give(\ c_give(\end
未知
function c_teststate(state)
-----------------作战装备------------------------------- function c_combatgear()
-----------------作战模拟器------------------------------- function c_combatsimulator(prefab, count)
-----------------转储------------------------------- function c_dump()
-----------------显示当前所处季节------------------------------- function c_dumpseasons()
例子:
c_dumpseasons()
[04:48:05]: ConsoleInput: \[04:48:05]: spring 14 -> 6 days (70 %) cycle
--------------打印世界信息---------------------- function c_dumpworldstate() 例子
[04:49:27]: ConsoleInput: \[04:49:27]:
[04:49:27]: //======================== DUMPING WORLD STATE ===================== ===\\\\
[04:49:27]: summerlength 15 [04:49:27]: seasonprogress 0.7 [04:49:27]: elapseddaysinseason 14 [04:49:27]: isfullmoon false
[04:49:27]: moisture 1552.6871337891 [04:49:27]: springlength 20 [04:49:27]: moonphase threequarter [04:49:27]: precipitationrate 0 [04:49:27]: iswet false
[04:49:27]: winterlength 15 [04:49:27]: iswinter false [04:49:27]: issummer false
[04:49:27]: moistureceil 3359.3188476563
9
[04:49:27]: isday false
[04:49:27]: remainingdaysinseason 6 [04:49:27]: isnight false [04:49:27]: isdusk true [04:49:27]: isspring true [04:49:27]: isautumn false [04:49:27]: issnowing false [04:49:27]: snowlevel 0
[04:49:27]: issnowcovered false [04:49:27]: autumnlength 20 [04:49:27]: phase dusk
[04:49:27]: temperature 38.151284629022 [04:49:27]: wetness 14.76150894165 [04:49:27]: pop 0.36728030875334 [04:49:27]: season spring [04:49:27]: israining false
[04:49:27]: time 0.79473068118095 [04:49:27]: cycles 49
[04:49:27]: precipitation none
[04:49:27]: timeinphase 0.95938441412789
[04:49:27]: \\\\================================================================== ===//
------------隐藏------------------- function c_makeinvisible()
---------------------------------- 作用未知
function c_selectnext(name) 以下应该是召唤boss 召唤鹿的马蹄声
function c_summondeerclops() 召唤熊德
function c_summonbearger() -------------聚集队员--------------- function c_gatherplayers()
local x,y,z = ConsoleWorldPosition():Get() for k,v in pairs(AllPlayers) do
v.Transform:SetPosition(x,y,z) end end
------------加速---------------- function c_speedup()
TheSim:SetTimeScale(TheSim:GetTimeScale() *10) print(\
10
end
-------------跳过多少天---------------------
function c_skip(num) num = num or 1
LongUpdate(TUNING.TOTAL_DAY_TIME * num) end
----------------投票----------------------- function c_togglevotekick() TheWorld.net.components.voter:ToggleVoteKick() end
---------------地面类型-------------------- function c_groundtype()
local index, table = ConsoleCommandPlayer():GetCurrentTileType() print(\
for k,v in pairs(table) do print(k,v) end end
-------------搜索---------------------- function c_searchprefabs(str)
例如
c_searchprefabs(\
[04:57:55]: ConsoleInput: \[04:57:55]: Found 10 matches: [04:57:55]: log
[04:57:55]: yellowgem
[04:57:55]: maxwellphonograph [04:57:55]: livinglog
[04:57:55]: glommerwings
[04:57:55]: deerclopswarning_lvl1 [04:57:55]: deerclopswarning_lvl4 [04:57:55]: deerclopswarning_lvl3 [04:57:55]: deerclopswarning_lvl2 [04:57:55]: teleportato_ring ---------------锁定健康--------------------
function c_maintainhealth(player, percent)
player = player or ConsoleCommandPlayer() if player.debug_maintainhealthtask ~= nil then player.debug_maintainhealthtask:Cancel() end
player.debug_maintainhealthtask = player:DoPeriodicTask(3, inst.components.health:SetPercent(percent or 1) end)
11
function(inst)