Back to TPG

TPG.Objectives.SpawnAll

S🏷️ Objectives

Part of TPG namespace

TPG.Objectives.SpawnAll(objectiveList)
View on GitHub|gamemode/objectives/sv_objectives.lua:32-68
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Remove the current control points and spawn this round's set. Clears TPG.State.objectives first, so it is safe to call on a live round. An empty or missing list leaves the round with no objectives at all, which in most modes means one that can never end -- a map with no block for the current game type is the usual cause. returned by TPG.Maps.GetObjectives. Names default to "Point N".

Parameters

NameTypeDescription
objectiveListtableEntries of `{ pos = Vector, name = string }`, as

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.