AddTextComponentFloat
DocsAddTextComponentFloat(value, decimalPlaces)Description
Adds a float to a text component placeholder, replacing ~1~ in the current text command's text label.
Parameters
| Name | Type | Description |
|---|---|---|
value | float | The number to substitute in the label. |
decimalPlaces | int | How many decimal places to add |
Returns
voidThis native does not return a value.
Examples
Official
-- on initialization
AddTextEntry('TEST_LABEL', 'Label: ~1~')
-- when drawing
BeginTextCommandThefeedPost('TEST_LABEL')
AddTextComponentFloat(1000.0, 2)
EndTextCommandThefeedPostTicker(false, true)