get_outpost_state_name - ryzom/ryzomcore GitHub Wiki
title: Get Outpost State Name description: published: true date: 2023-03-16T23:07:39.255Z tags: editor: markdown dateCreated: 2023-03-16T22:24:26.263Z
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
.