# Move Objective to Beginning

Grammar — Move Objective objective to the beginning of the list
FlagsNative | Action

Places the objective at the start of the list, causing it to display above all other objectives.

# Arguments

  • int<objective> — Objective

Returns — void

native void ObjectiveSetLast(int inObjective);

Category: Objective / Advanced

# Examples

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:2962

    TriggerExecute(gt_ObjectiveReachCommandRoomCreate, true, true);
    TriggerExecute(gt_ObjectiveNovaMustSurviveCreate, true, true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase5);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", PointFromId(75), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    PingSetUnit(PingLastCreated(), gv_s3_BeaconEnd);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:3932

    TriggerExecute(gt_ObjectiveNovaMustSurviveCreate, true, true);
    ObjectiveShow(gv_objectiveDestroyZergBase, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);
    libNCMI_gf_CreateObjectivePing(true, PointFromId(1976367658), StringExternal("Param/Value/3DC4E8DA"));
    libHots_gf_StorePingForUnit(UnitFromId(676453319), 1, PingLastCreated());

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:3987

    TriggerExecute(gt_ObjectiveNovaMustSurviveCreate, true, true);
    ObjectiveShow(gv_objectiveDestroyZergBase7, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase7);
    ObjectiveShow(gv_objectiveDestroyZergBase, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:3989

    ObjectiveSetLast(gv_objectiveDestroyZergBase7);
    ObjectiveShow(gv_objectiveDestroyZergBase, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);
    libNCMI_gf_CreateObjectivePing(true, UnitGetPosition(gv_stone), StringExternal("Param/Value/C770A345"));
    PingSetUnit(PingLastCreated(), gv_stone);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:7632

    UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/BC4AA4F1"), null, PointFromId(662280969));
    TriggerExecute(gt_ObjectiveArrestGeneralDavisCreate, true, false);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);
    Wait(2.0, c_timeGame);
    libComC_gf_SetAllSoundChannelVolumesCampaign(libComC_ge_VolumeChannelModeCampaign_Speech);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:2962

    TriggerExecute(gt_ObjectiveReachCommandRoomCreate, true, true);
    TriggerExecute(gt_ObjectiveNovaMustSurviveCreate, true, true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase5);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", PointFromId(75), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    PingSetUnit(PingLastCreated(), gv_s3_BeaconEnd);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:3932

    TriggerExecute(gt_ObjectiveNovaMustSurviveCreate, true, true);
    ObjectiveShow(gv_objectiveDestroyZergBase, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);
    libNCMI_gf_CreateObjectivePing(true, PointFromId(1976367658), StringExternal("Param/Value/3DC4E8DA"));
    libHots_gf_StorePingForUnit(UnitFromId(676453319), 1, PingLastCreated());

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:3987

    TriggerExecute(gt_ObjectiveNovaMustSurviveCreate, true, true);
    ObjectiveShow(gv_objectiveDestroyZergBase7, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase7);
    ObjectiveShow(gv_objectiveDestroyZergBase, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:3989

    ObjectiveSetLast(gv_objectiveDestroyZergBase7);
    ObjectiveShow(gv_objectiveDestroyZergBase, PlayerGroupAll(), true);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);
    libNCMI_gf_CreateObjectivePing(true, UnitGetPosition(gv_stone), StringExternal("Param/Value/C770A345"));
    PingSetUnit(PingLastCreated(), gv_stone);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:7632

    UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/BC4AA4F1"), null, PointFromId(662280969));
    TriggerExecute(gt_ObjectiveArrestGeneralDavisCreate, true, false);
    ObjectiveSetLast(gv_objectiveDestroyZergBase);
    Wait(2.0, c_timeGame);
    libComC_gf_SetAllSoundChannelVolumesCampaign(libComC_ge_VolumeChannelModeCampaign_Speech);