is_outpost_tribe_owner - ryzom/ryzomcore GitHub Wiki
title: Is Outpost Tribe Owner description: published: true date: 2023-03-16T23:08:27.031Z tags: editor: markdown dateCreated: 2023-03-16T22:25:27.002Z
The isOutpostTribeOwner native AI script function checks whether the current outpost owner is a tribe (group must be in an outpost NPC manager). It returns 1 if the owner of the current outpost is a tribe, 0 otherwise.
(tribeOwner)isOutpostTribeOwner(); // isOutpostTribeOwner__f
- tribeOwner (float): Returns 1 if the owner of the current outpost is a tribe, 0 otherwise.
($tribeOwner)isOutpostTribeOwner();
if ($tribeOwner == 1.0f) {
debug("The current outpost owner is a tribe!");
}
This example code calls the isOutpostTribeOwner function and stores the result in the $tribeOwner
variable. If the owner of the current outpost is a tribe, it prints a debug message.
This function can only be used when the group is in an outpost NPC manager. It checks whether the owner of the outpost is a tribe or not.
This function is useful for determining the type of owner of an outpost, as different types of owners may have different interactions and behaviors.