Modding:Lua/Tables/Playercompanions
From Starbounder - Starbound Wiki
< Modding:Lua | Tables
The playerCompanions table contains bindings used to manage player companions such as pets and crew members.
JsonArray
playerCompanions.getCompanions(String
companionType)
Returns a list of configurations for all companions of the specified type.
void
playerCompanions.setCompanions(String
companionType, JsonArray
companions)
Sets the player's companions of the specified type to the specified list of companion configurations.
Portal - Basics - JSON - Lua - Assets - Guides
Tables - Hooks - Tips & Tricks - Libraries - All Pages