This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setcmodplayermenuname [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:setcmodplayermenuname [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 11: | Line 11: | ||
name and build the specified unit. | name and build the specified unit. | ||
The section is a number that specified which menu the name is added to. It can be 0,1,2,3,4. 0 means the Struct menu, 1 means the Weapons menu, 2 is the Air menu, 3 is the Special menu, and 4 is the Custom menu. | The section is a number that specified which menu the name is added to. It can be 0,1,2,3,4. 0 means the Struct menu, 1 means the Weapons menu, 2 is the Air menu, 3 is the Special menu, and 4 is the Custom menu. | ||
+ | |||
+ | SetCModPlayerMenuName rebuilds the entire unit menu on the left. So it will be expensive in terms of CPU cycles. It is not intended that it be be called frequently (just when adding something to the menu). | ||
===== Examples ===== | ===== Examples ===== |