<- CRPL reference <- Text Commands

SetTextX

ArgumentsResultNotation
X Coordinate n1 -

Description

Sets the anchor point on the unit for SetText to attach to. SetTextX adjusts the horizontal location of the text in relation to the unit, with 0 being the default and centered on the unit. Used in conjunction with SetTextY and SetTextAnchor. Positive values move the text to the right.

Examples

# Set text to display offset to the right
"Hello Creeper World" SetText
20 SetTextX

# Warp notation
SetText("Hello Creeper World")
SetTextX(20)