# Player Melee Option
Grammar — option melee option is enabled for player player
Flags —Native
|Function
Returns whether or not a specified melee option is enabled for a player.
# Arguments
int
— Playerint
<preset::MeleeOption> — Option
Returns — bool
native bool MeleeGetOption(int player, int option);
# Related
Category: Melee / Player Settings
- Player Melee Option —
bool
— MeleeGetOption - Enable/Disable Melee Option For Player —
void
— MeleeSetOption - Set Starting Resources For Player —
void
— MeleeInitResourcesForPlayer - Set Starting Units For Player —
void
— MeleeInitUnitsForPlayer
# Examples
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:646
if ((GameIsTestMap(false) == true)) {
Wait(3.0, c_timeGame);
if ((MeleeGetOption(PlayerGroupPlayer(PlayerGroupActive(), 1), c_meleeOptionXPGainDisable) == true)) {
TriggerDebugOutput(1, StringExternal("Param/Value/lib_GAwX_2EB16EED"), true);
}