# Move Boss Bar

Grammar — Move boss bar bossBarID to anchor of screen with offset (offsetX, offsetY)
FlagsAction

Moves the specified boss bar to the specified coordinates.

# Arguments

  • int — BossBarID
  • int<preset::Anchor> — Anchor
  • int — OffsetX
  • int — OffsetY

Returns — void

void libNtve_gf_MoveBossBar(
	int lp_bossBarID,
	int lp_anchor,
	int lp_offsetX,
	int lp_offsetY,
);

Category: UI / Boss Bar

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1211

    libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1272

    libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarBoss(gv_odinBossBar, UnitFromId(2), true);
    libNtve_gf_MoveBossBar(gv_odinBossBar, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(true, gv_odinBossBar);
    TriggerEnable(gt_OdinLowHealthWarning, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1821

    libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
    libNtve_gf_MoveBossBar(gv_templeDoorBossBar, c_anchorTop, 0, 50);
    libNtve_gf_SetBossBarRace(gv_templeDoorBossBar, libNtve_ge_BossBarRace_Protoss, true);
    libNtve_gf_ShowHideBossBar(true, gv_templeDoorBossBar);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7294

    libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
    libNtve_gf_MoveBossBar(gv__3QueenBossBarIndex, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(true, gv__3QueenBossBarIndex);
    TriggerEnable(gt__3UpdateQueenBossyBar, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:1211

    libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:1272

    libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarBoss(gv_odinBossBar, UnitFromId(2), true);
    libNtve_gf_MoveBossBar(gv_odinBossBar, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(true, gv_odinBossBar);
    TriggerEnable(gt_OdinLowHealthWarning, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:1821

    libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
    libNtve_gf_MoveBossBar(gv_templeDoorBossBar, c_anchorTop, 0, 50);
    libNtve_gf_SetBossBarRace(gv_templeDoorBossBar, libNtve_ge_BossBarRace_Protoss, true);
    libNtve_gf_ShowHideBossBar(true, gv_templeDoorBossBar);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:7294

    libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
    libNtve_gf_MoveBossBar(gv__3QueenBossBarIndex, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(true, gv__3QueenBossBarIndex);
    TriggerEnable(gt__3UpdateQueenBossyBar, true);