# Objective Text
Grammar — objective text
Flags —Native
|Function
Returns the text of an objective.
# Arguments
int
[ objective ] — Objective
Returns — text
native text ObjectiveGetName(int inObjective);
# Related
Category: Objective / Advanced
- [F] —
void
— Set Objective Priority — ( ObjectiveSetPriority ) - [F] —
void
— Set Objective Description — ( ObjectiveSetDescription ) - [F] —
void
— Set Objective Players — ( ObjectiveSetPlayerGroup ) - [F] —
void
— Set Objective Text — ( ObjectiveSetName ) - [F] —
void
— Set Objective Type — ( ObjectiveSetPrimary ) - [F] —
void
— Move Objective to Beginning — ( ObjectiveSetLast ) - [F] —
void
— Move Objective to End — ( ObjectiveSetFirst ) - [F] —
void
— Move Objective to after Objective — ( ObjectiveSetAfter ) - [F] —
void
— Move Objective to before Objective — ( ObjectiveSetBefore ) - [F] —
text
— Objective Text — ( ObjectiveGetName ) - [F] —
text
— Objective Description — ( ObjectiveGetDescription ) - [F] —
playergroup
— Objective Players — ( ObjectiveGetPlayerGroup ) - [F] —
bool
— Objective Primary — ( ObjectiveGetPrimary ) - [F] —
int
— Objective Priority — ( ObjectiveGetPriority ) - [F] —
void
— Destroy Objective — ( ObjectiveDestroy ) - [F] —
void
— Destroy All Objectives — ( ObjectiveDestroyAll )
# Examples
# campaigns/swarmstory.sc2campaign
// L6344
ObjectiveGetName(DataTableGetObjective(true, libSwaC_gf_ZS_ObjectiveTableString(lp_objective)))
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L2635
ObjectiveGetName(DataTableGetObjective(true, libVoiC_gf_PS_ObjectiveTableString(lp_objective)))
# mods/missionpacks/campaigncommon.sc2mod
// L150
ObjectiveGetName(DataTableGetObjective(true, libComC_gf_CC_ObjectiveTableString(lp_objective)))
# mods/starcoop/starcoop.sc2mod
// L9298
ObjectiveGetName(DataTableGetObjective(true, libCOOC_gf_CS_ObjectiveTableString(lp_objective)))
# mods/voidprologue.sc2mod
// L4879
ObjectiveGetName(DataTableGetObjective(true, libA3DDD02B_gf_PP_ObjectiveTableString(lp_objective)))