Player* player = GetPlayer(); // Retrieve player object player->SetUInt32Value(HEALTH, 100); // Set health attribute to 100
Player* player = GetPlayer(); // Retrieve player object uint32_t currentExp = player->GetUInt32Value(EXP_POINTS); // Get current experience attribute value uint32_t newExp = currentExp + 50; // Increase experience by 50 player->SetUInt32Value(EXP_POINTS, newExp); // Set new experience attribute valueIn this example, the SetUInt32Value function is used to increase the player's experience points by 50. The current experience attribute value is retrieved using the GetUInt32Value function, then incremented and set again using SetUInt32Value.