# Enable/Disable Melee Option For Player
Grammar — value|Enable/Disable option melee option for player player
Flags —Native
|Action
Enables or disables a melee option for the specified player.
# Arguments
int
— Playerint
[ preset::MeleeOption ] — Optionbool
[ preset::Enable_Disable_Option ] — Value
Returns — void
native void MeleeSetOption(
int player,
int option,
bool value,
);
# Related
Category: Melee / Player Settings
- [F] —
bool
— Player Melee Option — ( MeleeGetOption ) - [F] —
void
— Enable/Disable Melee Option For Player — ( MeleeSetOption ) - [F] —
void
— Set Starting Resources For Player — ( MeleeInitResourcesForPlayer ) - [F] —
void
— Set Starting Units For Player — ( MeleeInitUnitsForPlayer )
# Examples
# mods/starcoop/starcoop.sc2mod
// L12434
MeleeSetOption(lv_indexPlayer, c_meleeOptionPoints, true)
# mods/warcoop/warclassicsystem.sc2mod
// L253
MeleeSetOption(lv_p, c_meleeOptionXPGainDisable, false)
// L578
MeleeSetOption(lv_p, c_meleeOptionXPGainDisable, false)
# mods/warcoop/warcoopdata.sc2mod
// L2194
MeleeSetOption(lv_player, c_meleeOptionXPGainDisable, false)