This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:setunitdebugtext [2022/03/24 04:09] – expand Grabz | 4rpl:commands:setunitdebugtext [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
Sets a text to appear above a unit. | 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 | + | This text can be used instead of, or in conjunction with [[SetObjText]] to display some text above a unit. It is directly |
+ | Both this API and [[SetObjText]] have access to all compatible formats in CW4. If you plan to resize the text, you will need to use the format "< | ||
+ | The full list of formats in CW4 can be found in the [[cw4: | ||
The text displayed by SetUnitDebugText is cleared upon game reload. If needed, it is recommended to re-apply the text display inside the [[func_awake|: | The text displayed by SetUnitDebugText is cleared upon game reload. If needed, it is recommended to re-apply the text display inside the [[func_awake|: | ||
- | |||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> |