Part of TPG namespace
TPG.Maps.AddPoint(ptype, teamId, pos, name)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Append a point to the running map's list and save immediately. No de-duplication: placing the same type/position twice yields two records, which for "ctf" matters because TPG.Maps.GetCustomFlagPoint always returns the first one in list order (the first ever placed), silently ignoring any later ones.
Parameters
| Name | Type | Description |
|---|---|---|
ptype | string | One of `"cp"`, `"koth"`, `"ctf"`, `"spawn"`. |
teamId? | number | Only meaningful for `"spawn"`; nil otherwise. |
pos | Vector | World position. |
name? | string | Optional label; falls back to a generated one when read. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.