Modding:Lua/Tables/Playercompanions

From Starbounder - Starbound Wiki
Jump to: navigation, search

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.

Quick Navigation