Skip to content

is_outpost_guild_owner

Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

title: Is Outpost Guild Owner description: published: true date: 2023-03-16T23:08:24.336Z tags: editor: markdown dateCreated: 2023-03-16T22:25:23.224Z

isOutpostGuildOwner

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.

Syntax

(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.

Notes

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.

Clone this wiki locally