User Tools

Site Tools


4rpl:commands:setunitdebugtext

This is an old revision of the document!


Index

SetUnitDebugText

SetUnitDebugText(<-unit <-text)

Description

Sets a text to appear above a unit.

This text can be used instead of, or in conjunction with SetObjText to display some text above a unit. It does not need to be attached to an object, but it cannot be re-positioned or colored. Despite being labelled a debug function, it can be used in non-editor gameplay. For example, the game uses it to display the out-of-ammo message for the Airship.

The text displayed by SetUnitDebugText is cleared upon game reload. If needed, it is recommended to re-apply the text display inside the :Awake function.

Examples

SetUnitDebugText(Self "text goes here")

See Also

4rpl/commands/setunitdebugtext.1648094967.txt.gz · Last modified: 2025/02/14 14:56 (external edit)