# Player Flag Check

Grammar — Player player state is on
FlagsNative | Function

Returns true if the specified flag is enabled.

# Arguments

  • int — Player
  • int<preset::PlayerState> — Player Flag

Returns — bool

native bool PlayerGetState(int inPlayer, int inState);

Category: Player / Player Settings

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4537

    // Automatic Variable Declarations
    // Implementation
    return PlayerGetState(1, c_playerStateStartingRallyEnabled);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3811

    // Automatic Variable Declarations
    // Implementation
    return PlayerGetState(1, c_playerStateStartingRallyEnabled);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:3922

bool libNCMI_gf_NM_StartingWorkerAutoHarvestEnabled () {
    // Implementation
    return PlayerGetState(1, c_playerStateStartingRallyEnabled);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:11690

    // Automatic Variable Declarations
    // Implementation
    return PlayerGetState(1, c_playerStateStartingRallyEnabled);
}

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:3430

    // Automatic Variable Declarations
    // Implementation
    return PlayerGetState(1, c_playerStateStartingRallyEnabled);
}