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