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
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.
(name: s)getOutpostStateName()
- 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.
($name)getOutpostStateName();
This example code gets the name of the current outpost state and stores it in the variable name
.