This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 4rpl:commands:setobjtext [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:setobjtext [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Description ===== | ===== Description ===== | ||
| - | Sets text of a unit's object. Objects are the sub-parts that make up a unit. | + | Sets text of a unit's object. Objects are the sub-parts that make up a unit.\\ |
| - | When text is set on an object it will show an in-game text field on the object. By default the text will billboard, that is to say it will always face the camera. | + | When text is set on an object it will show an in-game text field on the object. By default the text will billboard, that is to say it will always face the camera.\\ |
| To remove text from an object set the text to empty string ("" | To remove text from an object set the text to empty string ("" | ||
| + | |||
| + | This API and [[SetUnitDebugText]] 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: | ||
| ===== Examples ===== | ===== Examples ===== | ||