# Move Objective to Beginning
Grammar — Move Objective objective to the beginning of the list
Flags —Native
|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);
# Related
Category: Objective / Advanced
- Set Objective Priority —
void
— ObjectiveSetPriority - Set Objective Description —
void
— ObjectiveSetDescription - Set Objective Players —
void
— ObjectiveSetPlayerGroup - Set Objective Text —
void
— ObjectiveSetName - Set Objective Type —
void
— ObjectiveSetPrimary - Move Objective to Beginning —
void
— ObjectiveSetLast - Move Objective to End —
void
— ObjectiveSetFirst - Move Objective to after Objective —
void
— ObjectiveSetAfter - Move Objective to before Objective —
void
— ObjectiveSetBefore - Objective Text —
text
— ObjectiveGetName - Objective Description —
text
— ObjectiveGetDescription - Objective Players —
playergroup
— ObjectiveGetPlayerGroup - Objective Primary —
bool
— ObjectiveGetPrimary - Objective Priority —
int
— ObjectiveGetPriority - Destroy Objective —
void
— ObjectiveDestroy - Destroy All Objectives —
void
— ObjectiveDestroyAll
# Examples
mods/novastoryassets.sc2mod — base.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.sc2mod — base3.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.sc2mod — base3.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.sc2mod — base3.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.sc2mod — base3.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.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.sc2mod/base3.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.sc2mod/base3.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.sc2mod/base3.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.sc2mod/base3.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);