get_state_name - ryzom/ryzomcore GitHub Wiki


title: Get State Name description: published: true date: 2023-03-16T23:08:00.100Z tags: editor: markdown dateCreated: 2023-03-16T22:24:53.082Z

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** ⚠️