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. 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 After switching levels, you will need to re-enter the command. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |