Skip to content

Allow getting and modifying unit custom names in Lua #2825

@XHawk87

Description

@XHawk87

Is your feature request related to a problem? Please describe.
This would be useful for automatically applying historical names to units in scenarios as they are constructed, as well as creating notifications about these units with improved flavour text.

Describe the solution you'd like

  • Unit.name - Get the unit's custom name.
  • Unit:name_set(new_name) - Set the unit's custom name.

Describe alternatives you've considered
None yet.

Additional context
Discord

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestluaIssues related to our Lua scriptcoreserverThis issue requires changes to the server

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions