Player's values

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Public Service Announcement

    Hey Guest, I’ve got some exciting news to share! 🎉

    Starting this December, I’ll be moving the entire GameServersHub website away from WordPress and rebuilding it in Next.js! This upgrade will bring incredibly faster speeds, smoother performance, and a modern user experience that sets the stage for everything coming next.

    In 2026, GameServersHub will be entering a new era. I’ll be revamping the entire platform from the ground up and launching a brand-new, fully modernized marketplace. It’ll feature a cleaner design, improved functionality, and better tools for both creators and server owners.

    On top of that, development has already started on the GameServerListing project at https://gsl-six.vercel.app/, which is expected to launch in early Q1 2026. This new system will make discovering and managing servers easier than ever before.


    👉 Stay in the loop!
    Join our Discord for behind-the-scenes updates, early previews, and community discussions.

    » Click here to join our Discord! «

    ~ MrOwlSky

sky1145960810

Well-known member
Joined
Oct 30, 2019
Messages
17
I'm a novice and my English is not very good. I want to make a plug-in. It needs the function of getting player array,
0: Health
1: Stamina / Charge Capacity
2: Torpidity
3: Oxygen / Charge Regeneration
4: Food
5: Water
6: Temperature
7: Weight
8: MeleeDamageMultiplier / Charge Emission Range
9: SpeedMultiplier
10: TemperatureFortitude
11: CraftingSpeedMultiplier
I want to know how to get these values
Thank you in advance for your help
 
C++:
void checkPlayerStats(AShooterPlayerController* aspc) {
    if (aspc && aspc->GetPlayerCharacter()) {
        auto status = aspc->GetPlayerCharacter()->MyCharacterStatusComponentField();
        if (status) {
            auto stats = status->CurrentStatusValuesField()();
            auto maxStats = status->MaxStatusValuesField()();
            Log::GetLog()->info("Health {} / {}", stats[EPrimalCharacterStatusValue::Health], maxStats[EPrimalCharacterStatusValue::Health]);
            Log::GetLog()->info("Stamina {} / {}", stats[EPrimalCharacterStatusValue::Stamina], maxStats[EPrimalCharacterStatusValue::Stamina]);
            // Etc for rest of stats
        }
    }
}

enum Type
{
    Health = 0x0,
    Stamina = 0x1,
    Torpidity = 0x2,
    Oxygen = 0x3,
    Food = 0x4,
    Water = 0x5,
    Temperature = 0x6,
    Weight = 0x7,
    MeleeDamageMultiplier = 0x8,
    SpeedMultiplier = 0x9,
    TemperatureFortitude = 0xA,
    CraftingSpeedMultiplier = 0xB,
    MAX = 0xC,
};
 
Back
Top