Part of TPG namespace
TPG.ControlPoint.GetStateColor(state, progress, maxProgress)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
The colour a point should draw at, given how far its capture has got. Fades toward the owning team's colour as the capture completes, and back through yellow as it is pushed to neutral, so the colour alone shows both who holds it and how firmly.
Parameters
| Name | Type | Description |
|---|---|---|
state | number | One of the `STATE_*` values. |
progress | number | Current capture progress, signed. |
maxProgress | number | Progress needed for a full capture. |
Returns
| Type | Description |
|---|---|
Color |
Examples
No examples available.
Used In
No usages found in the codebase.