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