# Set Objective Description

Grammar — Set objective description to description
FlagsNative | Action

Sets the description of an objective.

# Arguments

  • int<objective> — Objective
  • text — Description

Returns — void

native void ObjectiveSetDescription(
	int inObjective,
	text inText,
);

Category: Objective / Advanced

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1069

    }
    UnitSetState(gv_kerrigan, c_unitStateSelectable, false);
    ObjectiveSetDescription(gv_objectiveDestroyDominionBase2, libSwaC_gf_MissionObjectiveDescription("ZHybrid03Objective02"));
    TriggerExecute(gt_NullZone10Q, true, false);
    TriggerExecute(gt_CorrosiveBlastQ, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:3806

    gv_objectiveDestroyDominionBase2 = ObjectiveLastCreated();
    ObjectiveSetPriority(ObjectiveLastCreated(), 0);
    ObjectiveSetDescription(ObjectiveLastCreated(), StringExternal("Param/Value/C010B197"));
    Wait(libSwaC_gv_campaignObjectiveDelay, c_timeReal);
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2mapMapScript.galaxy:1069

    }
    UnitSetState(gv_kerrigan, c_unitStateSelectable, false);
    ObjectiveSetDescription(gv_objectiveDestroyDominionBase2, libSwaC_gf_MissionObjectiveDescription("ZHybrid03Objective02"));
    TriggerExecute(gt_NullZone10Q, true, false);
    TriggerExecute(gt_CorrosiveBlastQ, true, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2mapMapScript.galaxy:3806

    gv_objectiveDestroyDominionBase2 = ObjectiveLastCreated();
    ObjectiveSetPriority(ObjectiveLastCreated(), 0);
    ObjectiveSetDescription(ObjectiveLastCreated(), StringExternal("Param/Value/C010B197"));
    Wait(libSwaC_gv_campaignObjectiveDelay, c_timeReal);
    return true;