Control the current pocket computer, adding or removing upgrades.
This API is only available on pocket computers. As such, you may use its presence to determine what kind of computer you are using:
if pocket then print("On a pocket computer") else print("On something else") end
|equipBack()||Search the player's inventory for another upgrade, replacing the existing one with that item if found.|
|unequipBack()||Remove the pocket computer's current upgrade.|
Search the player's inventory for another upgrade, replacing the existing one with that item if found.
This inventory search starts from the player's currently selected slot, allowing you to prioritise upgrades.
booleanIf an item was equipped.
string| nil The reason an item was not equipped.
Remove the pocket computer's current upgrade.
booleanIf the upgrade was unequipped.
string| nil The reason an upgrade was not unequipped.