TPG.UI.DrawTeammates(ply, teamId, teamColor)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Draw a name-tagged dot over every teammate visible on screen. Prefers the server-pushed position from TPG.UI.teamPositions (populated by the TPG_TeamPositions net message, which the server sends for the local player's OWN team only, keyed by entity index -- see the comment above that net.Receive), which stays accurate even for a teammate outside this client's PVS. Falls back to the entity's own GetPos() when no server position has arrived yet for that index, which happens for anyone who joined since the last TPG_TeamPositions broadcast.
Parameters
| Name | Type | Description |
|---|---|---|
ply | Player | The local player (used only to skip drawing over self). |
teamId | number | The team to draw markers for. |
teamColor | Color | Dot colour. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.