is_outpost_guild_owner - ryzom/ryzomcore GitHub Wiki
title: Is Outpost Guild Owner description: published: true date: 2023-03-14T03:26:29.325Z tags: editor: markdown dateCreated: 2023-03-14T03:23:17.904Z
The isOutpostGuildOwner native AI script function checks if the current outpost owner is a guild (group must be in an outpost NPC manager). It returns 1 if the current outpost owner is a guild, 0 otherwise.
(guildOwner)isOutpostGuildOwner();
```c
## Return value
* guildOwner _(float)_: Returns 1 if the current outpost owner is a guild, 0 otherwise.
## Examples
```c
(guildOwner)isOutpostGuildOwner();
if (guildOwner == 1.0f) {
debug("The current outpost owner is a guild!");
}
This example code calls the isOutpostGuildOwner function and stores the result in the guildOwner
variable. If the current outpost owner is a guild, it prints a debug message.
This function is used to determine if the current outpost owner is a guild or not. If the owner is not a guild, it is assumed to be a tribe.
The isOutpostTribeOwner
function can be used to determine if the current outpost owner is a tribe.