HabdomeRaider Posted February 3, 2017 Share Posted February 3, 2017 I created a mod that expands the list of available console commands. http://steamcommunity.com/sharedfiles/filedetails/?id=851468179 The first part of the mod lets you spawn items based on their in-game name rather than the prefab name. For example, you can type c_spawn("Science Machine") instead of c_spawn("researchlab") The names are case and space sensitive, but no more trying to remember what the prefab name is and if it has an underscore or not. You can use the in-game name instead of the prefab name for the c_spawn, c_give, c_mat, c_list, c_findnext, c_find, c_countprefabs, and c_selectnear console commands. In the case that more than one prefab has the same name, the command will choose whichever one the game lists first. For example, c_spawn("Boulder") seems to always spawn "rocks2" (the boulder with gold veins). If you want a different type of boulder, you can still use the prefab name to spawn it. The second part is a bunch of new commands that allow you to select and manipulate entities in the game world. You begin the command with one of the following selectors. These selectors do nothing on their own, but specify which group of entities you want to manipulate: c_all() c_all("Beefalo") c_all("researchlab") c_all() selects all the entities in the game world. You rarely want to use this directly. You can give c_all() a prefab name to select all entities of that type. You can use the in-game name or the prefab name of the entities. c_players() c_players("HabdomeRaider") c_me() c_players() selects all the player entities. You can give c_players() a player's name to select that specific player. c_me() selects just yourself. c_mouse() c_mouse() selects the entity sitting under your mouse cursor. Once you have selected a group of items, you can apply these commands to that group. Commands are separated with colons and can be chained together: c_mouse():print() //print the name of the entity under the mouse cursor. :print() lists the prefab name of the entities in the selection. c_all():count() // tell you how many entities there are in the world c_all("Science Machine"):count() // tell you how many Science Machines there are :count() displays the number of entities in the group. c_me():give("Spear") // Give yourself a spear c_players():give("Football Helmet") // Give each player a football helmet c_player("HabdomeRaider"):give("Jerky", 10) // Give HabdomeRaider 10 pieces of jerky c_players():give("Football Helmet"):give("Jerky", 20) // Give each player a football helmet and 10 pieces of jerky The :give() command works just like c_give, but it gives the items to all the selected entities. Again, you can use in-game names or prefab names. Give commands can be chained together. c_all("Beefalo"):delete() // Remove all the beefalo from the world :( :delete() removes the entities from the world. c_all("Spider"):addtag("selected") // Gives all spiders the "selected" tag :addtag() gives the entities in the group a particular tag. Tags are used for special conditions within the game or you can use this later to reselect this group. There are several commands that can narrow down your selection: c_all():prefab("Rabbit") // select all rabbits. same as c_all("Rabbit") c_all():tag("selected") // selects entities with the tag "selected" like those spiders from earlier c_all("Alchemy Engine"):nearest() // selects the alchemy engine closest to the player c_all():tag("selected"):delete() // delete all entities with the "selected" tag :prefab() narrows the selection down to a specific type of item. :tag() narrows the selection down to the entities with the given tag. :nearest() selects just the entity in the group that is closest to the player. These commands can be chained with the other commands to affect specific entities. c_players():move() // Move all players to the mouse location. c_me():move(c_all("Science Machine"):nearest()) // Move yourself to the nearest science machine Finally, the :move command lets you move entities. :move() will move the selected items to the mouse location, or you can specify an entity to move the selected items to that entity's location. Hopefully you will find these additional commands useful. Link to comment https://forums.kleientertainment.com/forums/topic/73779-console-select-additional-console-commands-keep-forgetting-prefab-names/ Share on other sites More sharing options...
Boogiepop210 Posted August 26, 2022 Share Posted August 26, 2022 Tbh if your gonna read the wiki for console commands you prob wouldn't care if they're shorter as it's possible to do all of these sometimes easier like On 2/2/2017 at 5:56 PM, HabdomeRaider said: c_all("Beefalo"):delete() c_removeall("beefalo") is the same thing Link to comment https://forums.kleientertainment.com/forums/topic/73779-console-select-additional-console-commands-keep-forgetting-prefab-names/#findComment-1595925 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now