Changing a PlayerObject’s Icon

// Include the MoreIcons.hpp header
#include <hiimjustin000.more_icons/include/MoreIcons.hpp>

// Change the icon of a PlayerObject to the current icon (Determined icon type)
more_icons::updatePlayerObject(player);

// Change the icon of a PlayerObject to the current icon (Determined icon type, Separate Dual Icons)
more_icons::updatePlayerObject(player, true);

// Change the icon of a PlayerObject to the current icon
more_icons::updatePlayerObject(player, IconType::Cube);

// Change the icon of a PlayerObject to the current icon (Separate Dual Icons)
more_icons::updatePlayerObject(player, IconType::Cube, true);

// Change the icon of a PlayerObject to a custom icon
more_icons::updatePlayerObject(player, more_icons::getIcon("my_custom_icon", IconType::Cube));