Back to TPG

TPG.Maps.GetObjectives

S🏷️ Maps

Part of TPG namespace

TPG.Maps.GetObjectives(gameType)
View on GitHub|gamemode/maps/_loader.lua:1088-1097
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

The current map's objective positions for a game type. Returns an empty list when the map has no block for that mode, which is why a new mode can appear to run but never end. Fed straight to tpg.objectives.SpawnAll.

Parameters

NameTypeDescription
gameTypenumberA `GAMEMODE_*` constant.

Returns

TypeDescription
tableList of `{ pos = Vector, name = string }`; empty, never nil.

Examples

No examples available.

Used In

No usages found in the codebase.