# Enable/Disable Melee Option For Player

Grammarvalue|Enable/Disable option melee option for player player
FlagsNative | Action

Enables or disables a melee option for the specified player.

# Arguments

Returns — void

native void MeleeSetOption(
	int player,
	int option,
	bool value,
);

Category: Melee / Player Settings

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L12401
MeleeSetOption(lv_indexPlayer, c_meleeOptionPoints, true)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L253
MeleeSetOption(lv_p, c_meleeOptionXPGainDisable, false)
// L578
MeleeSetOption(lv_p, c_meleeOptionXPGainDisable, false)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L2194
MeleeSetOption(lv_player, c_meleeOptionXPGainDisable, false)