get_outpost_state_name - ryzom/ryzomcore GitHub Wiki


title: Get Outpost State Name description: published: true date: 2023-03-13T17:02:29.744Z tags: editor: markdown dateCreated: 2023-03-13T17:02:11.969Z

getOutpostStateName

The getOutpostStateName native AI script function returns the name of the current outpost state. The NPC group must be in an outpost NPC manager for this function to work.

Syntax

(name: s)getOutpostStateName()

Return value

  • name (string): The name of the current outpost state. If the group is not in an outpost NPC manager, the function returns an empty string.

Examples

($name)getOutpostStateName();

This example code gets the name of the current outpost state and stores it in the variable name.

⚠️ **GitHub.com Fallback** ⚠️