# Override Player Option
Grammar — Override option option for player p to value
Flags —Native
|Action
Setting the value to “No Value” will clear the override and return the value to whatever the player had selected previously. If an override value is set, option UI will be disabled for the player. Overrides are removed when leaving a game.
# Arguments
int
— Playerstring
[ gameoption ] — Optionstring
[ gameoptionvalue ] — Value
Returns — void
native void PlayerOptionOverride(
int p,
string option,
string value,
);
# Related
Category: Player / Player Settings
- [F] —
void
— Modify Player Property (Integer) — ( PlayerModifyPropertyInt ) - [F] —
void
— Modify Player Property (Real) — ( PlayerModifyPropertyFixed ) - [F] —
int
— Player Property (Integer) — ( PlayerGetPropertyInt ) - [F] —
fixed
— Player Property (Real) — ( PlayerGetPropertyFixed ) - [F] —
void
— Modify Player Score (Integer) — ( PlayerScoreValueSetFromInt ) - [F] —
void
— Modify Player Score (Real) — ( PlayerScoreValueSetFromFixed ) - [F] —
int
— Player Score Value (Integer) — ( PlayerScoreValueGetAsInt ) - [F] —
fixed
— Player Score Value (Real) — ( PlayerScoreValueGetAsFixed ) - [F] —
void
— Turn Player Flag On/Off — ( PlayerSetState ) - [F] —
bool
— Player Flag Check — ( PlayerGetState ) - [F] —
bool
— Player License Check — ( PlayerHasLicense ) - [F] —
bool
— Player Access Check — ( PlayerHasAccessTo ) - [F] —
bool
— Player Has Reward — ( PlayerHasReward ) - [F] —
bool
— Player Has Talent — ( PlayerHasTalent ) - [F] —
text
— Name Of Player — ( PlayerName ) - [F] —
string
— Handle Of Player — ( PlayerHandle ) - [F] —
string
[ gamelink::Race ] — Race Of Player — ( PlayerRace ) - [F] —
string
[ gamelink::Hero ] — Hero Of Player — ( PlayerHero ) - [F] —
string
[ gamelink::Skin ] — Skin Of Player — ( PlayerSkin ) - [F] —
string
[ gamelink::Mount ] — Mount Of Player — ( PlayerMount ) - [F] —
string
[ gamelink::Spray ] — Spray Of Player — ( PlayerSpray ) - [F] —
string
[ gamelink::Artifact ] — Artifact Of Player — ( PlayerArtifact ) - [F] —
int
— Artifact Rank Of Player — ( PlayerArtifactRank ) - [F] —
string
[ gamelink::Commander ] — Commander Of Player — ( PlayerCommander ) - [F] —
int
— Commander Level Of Player — ( PlayerCommanderLevel ) - [F] —
int
— Commander Mastery Level Of Player — ( PlayerCommanderMasteryLevel ) - [F] —
int
— Commander Mastery Talent Rank Of Player — ( PlayerCommanderMasteryTalentRank ) - [F] —
int
— Commander Selected Prestige Of Player — ( PlayerCommanderSelectedPrestige ) - [F] —
int
— Brutal Plus Difficulty of Player — ( PlayerBrutalPlusDifficulty ) - [F] —
int
— Retry Mutation Index of Player — ( PlayerRetryMutation ) - [F] —
int
— Allied Commander Enemy Wave Type — ( PlayerACEnemyWaveType ) - [F] —
point
— Start Location Of Player — ( PlayerStartLocation ) - [F] —
int
[ preset::PlayerController ] — Controller Of Player — ( PlayerType ) - [F] —
int
[ preset::PlayerStatus ] — Status Of Player — ( PlayerStatus ) - [F] —
void
— Set Player Color — ( PlayerSetColorIndex ) - [F] —
void
— Set Player Race — ( PlayerSetRace ) - [F] —
void
— Set Player Hero — ( PlayerSetHero ) - [F] —
void
— Set Player Skin — ( PlayerSetSkin ) - [F] —
void
— Set Player Console Skin — ( PlayerSetConsoleSkin ) - [F] —
void
— Apply Player Skin — ( PlayerApplySkin ) - [F] —
void
— Apply Player Skin (Replacing Existing Unit) — ( libNtve_gf_PlayerApplySkinReplacingExistingUnit ) - [F] —
void
— Set Player Mount — ( PlayerSetMount ) - [F] —
void
— Set Player Spray — ( PlayerSetSpray ) - [F] —
void
— Set Player Commander — ( PlayerSetCommander ) - [F] —
void
— Set Player Commander Level — ( PlayerSetCommanderLevel ) - [F] —
void
— Set Player Commander Mastery Level — ( PlayerSetCommanderMasteryLevel ) - [F] —
void
— Set Player Death Timer — ( PlayerSetDeathTimer ) - [F] —
void
— Set Player Bounds — ( PlayerSetBounds ) - [F] —
void
— Add Player Talent — ( PlayerAddTalent ) - [F] —
void
— Remove Player Talent — ( PlayerRemoveTalent ) - [F] —
void
— Add Player Response — ( PlayerAddResponse ) - [F] —
void
— Remove Player Response — ( PlayerRemoveResponse ) - [F] —
void
— Clear Player Response — ( PlayerClearResponse ) - [F] —
int
[ playercolor ] — Player Color — ( PlayerGetColorIndex ) - [F] —
void
— Override Player Option — ( PlayerOptionOverride ) - [F] —
string
— Player Hotkey Profile — ( PlayerGetHotkeyProfile ) - [F] —
void
— Player Property Changed — ( TriggerAddEventPlayerPropChange ) - [F] —
void
— Player Joins Game — ( TriggerAddEventPlayerJoin ) - [F] —
void
— Player Leaves Game — ( TriggerAddEventPlayerLeft ) - [F] —
int
— Triggering Player — ( EventPlayer ) - [F] —
int
[ preset::Player_Property_Get ] — Triggering Player Property — ( EventPlayerProperty ) - [F] —
int
— Triggering Player Property Change (Integer) — ( EventPlayerPropertyChangeInt ) - [F] —
fixed
— Triggering Player Property Change (Real) — ( EventPlayerPropertyChangeFixed ) - [F] —
void
— Player Add Label — ( PlayerAddLabel ) - [F] —
void
— Player Remove Label — ( PlayerRemoveLabel ) - [F] —
void
— Player Remove All Labels — ( PlayerRemoveAllLabels ) - [F] —
bool
— Player Has Label — ( PlayerHasLabel ) - [F] —
void
— Player Add Reward — ( PlayerAddReward )
# Examples
# mods/heroes.stormmod
// L5746
PlayerOptionOverride(gv_pLAYER_01_USER, "camerafollow", "1")
// L3444
PlayerOptionOverride(gv_pLAYER_01_USER, "camerafollow", "1")
// L5746
PlayerOptionOverride(gv_pLAYER_01_USER, "camerafollow", "1")
// L3444
PlayerOptionOverride(gv_pLAYER_01_USER, "camerafollow", "1")
# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod
// L753
PlayerOptionOverride(auto434C0DDD_var, "camerafollow", "0")
# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod
// L149
PlayerOptionOverride(auto4F75C67D_var, "camerafollow", "0")
# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod
// L339
PlayerOptionOverride(autoC3DC2A01_var, "camerafollow", "0")
# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod
// L217
PlayerOptionOverride(auto409BA195_var, "camerafollow", "0")
// L2360
PlayerOptionOverride(autoE2F8DB5E_var, "camerafollow", "0")
# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod
// L9769
PlayerOptionOverride(auto8E542D67_var, "camerafollow", "0")
// L9872
PlayerOptionOverride(auto35A7B0B1_var, "camerafollow", "0")
// L10034
PlayerOptionOverride(lv_playerIndex, "camerafollow", "0")
# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod
// L1268
PlayerOptionOverride(lv_itPlayer, "camerafollow", "0")
# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod
// L1385
PlayerOptionOverride(lv_itPlayer, "camerafollow", "0")
# mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod
// L809
PlayerOptionOverride(lv_i, "camerafollow", "1")
// L825
PlayerOptionOverride(libCore_gv_oBSERVER_ObserverUIPlayer, "camerafollow", "1")
// L1150
PlayerOptionOverride(libCore_gv_oBSERVER_ObserverUIPlayer, "camerafollow", "1")
# mods/heroesbrawlmods/brawlmapmods/pullparty.stormmod
// L66
PlayerOptionOverride(auto2557329E_var, "camerafollow", "0")
# mods/heroesdata.stormmod
// L1072
PlayerOptionOverride(lp_player, "camerafollow", null)
// L1079
PlayerOptionOverride(lp_player, "camerafollow", "1")
// L1089
PlayerOptionOverride(lp_player, "camerafollow", "1")
// L1097
PlayerOptionOverride(lp_player, "camerafollow", "1")
// L1102
PlayerOptionOverride(lp_player, "camerafollow", "0")
// L19106
PlayerOptionOverride(autoE67D1356_var, "camerafollow", "0")
# mods/heroesdata.stormmod
— StartingExperienceLib.galaxy
// L526
PlayerOptionOverride(1, "camerafollow", "0")
// L530
PlayerOptionOverride(1, "camerafollow", "1")
// L538
PlayerOptionOverride(1, "camerafollow", "1")
// L541
PlayerOptionOverride(1, "camerafollow", "0")
// L556
PlayerOptionOverride(lp_player, "camerafollow", "0")
// L570
PlayerOptionOverride(lp_player, "camerafollow", null)
// L573
PlayerOptionOverride(lp_player, "camerafollow", null)
# mods/warcoop/warclassicsystem.sc2mod
// L579
PlayerOptionOverride(lv_p, "selectuncontrolable", "1")
// L580
PlayerOptionOverride(lv_p, "gametooltips", "1")
// L581
PlayerOptionOverride(lv_p, "tickedunitstatus", "0")
// L582
PlayerOptionOverride(lv_p, "selectuncontrolable", "1")
# mods/warcoop/warcoopdata.sc2mod
// L2192
PlayerOptionOverride(lv_player, "selectuncontrolable", "1")
// L2193
PlayerOptionOverride(lv_player, "showcurrentordermodel", "0")