get_state_name - ryzom/ryzomcore GitHub Wiki


title: Get State Name description: published: true date: 2023-03-13T00:11:55.494Z tags: editor: markdown dateCreated: 2023-03-13T00:11:15.134Z

getStateName

The getStateName native AI script function returns the name of the current state.

Syntax

(StateName: s)getStateName()

Return value

  • StateName (string): The name of the current state.

Example

($name)getStateName();

This example code sets the variable $name to the name of the current state.

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