![]() ![]() GetPlayer().profile:UnlockCharacter("wolfgang") Does not need to be re-entered after the first time unless you lose your profile settings. GetPlayer().profile:UnlockCharacter("willow") It's required to save and quit the game for the change to take effect. You can unlock multiple characters at a time without requiring the line including the save until the very last step.Ĭhanges the current Character to the one entered in the command (prefab name, i.e. While profile commands are permanent and do not need to be done each time, they do need to be performed while in a game. Prints the distance between player and object under mouse to the console log (displayed with Ctrl + L by default). print(math.sqrt(GetPlayer():GetDistanceSqToInst(TheInput:GetWorldEntityUnderMouse()))) Note that the fire rain duration is measured in seconds. GetVolcanoManager():StartEruption( smokeduration, ashduration, firerainduration, firerockspersecond)ĭo a volcano eruption. Will hit lightning rod instead if there is one near GetSeasonManager():DoLightningStrike(Vector3(GetPlayer().Transform:GetWorldPosition())) Very long day, very short dusk and night (one segment for dusk and one for night) 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. Note: There are 30 time units per segment. Skips X time units and performs the "LongUpdate" function on world objects WARNING: Too big values may freeze the game. Replace 50 with the amount of days you want to skip. for x = 1, 50 do GetClock():MakeNextDay() end Note: the map will return to normal after exiting the game or changing maps, but any new areas will remain explored. TheInput:GetWorldEntityUnderMouse():Remove() Īfter pressing enter, it deletes the item under your mouse 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. World commands Īfter pressing enter, it teleports you to the first numerical instance of the named prefab. GetPlayer().components.beaverness:SetPercent(1) GetPlayer().components.hunger:Pause(true) GetPlayer().components.hunger:SetMax( value) Ĭhange the Maximum Hunger of your Characters GetPlayer().components.sanity:SetMax( value) Ĭhange the Maximum Sanity of your Characters GetPlayer().components.health:SetMaxHealth( value) Ĭhange the Maximum Health of your Characters This includes items you never crafted before. ![]() GetPlayer().components.builder:GiveAllRecipes() Hide or show (after hiding) the full HUD of the game. There's some other commands, but they're hard to use and not very useful. 10 makes you a bit faster and with 40 you can walk through walls and "over" water. Note that you will need to turn it off and on again after passing through a Worm Hole, sleeping, Telepoofing, entering or exiting a cave system, eating mandrakes, or using complicated commands too many times. It won't drain Sanity, Hunger or Health when attacked anymore. Only works with Backpacks and Items that can be stored in the inventory.Īpply a scenario script to the selection and run it. Spawns amount of selected "prefab" in your inventory. Improved DebugSpawn("prefab"), spawns amount of selected "prefab" under the mouse cursor. However, the player will still have to re-enter every command after re-entering a world. Note: Like many other command-line interfaced programs, the user can press the upper arrow key to get access to previously entered commands, with no need to re-type them manually again. You will need to run this command once to enable console commands: Also you can hide the console menu again by pressing Ctrl + L. This can be changed at any time in the controls menu. Then to open the console while in game by pressing "~" by default on English keyboards. Locate the settings.ini and open it with Notepad and where it says ENABLECONSOLE = false and rewrite it as ENABLECONSOLE = true then save the document. Windows, Mac: \Klei\DoNotstarve\settings.ini This can be found in the "donotstarve" folder, located in the following paths : If for whatever reason it is not, you first need to do some tweaking in your settings.ini of your save. The Command Console is enabled by default. ![]() If you are trying to use console commands for Don't Starve Together then please use this Page. Attention: This page is for console commands from the Base Game (along with its dlcs).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |