despawn_bot_by_alias - ryzom/ryzomcore GitHub Wiki
title: Despawn Bot By Alias description: published: true date: 2023-03-16T23:06:15.983Z tags: editor: markdown dateCreated: 2023-03-16T22:22:36.916Z
The despawnBotByAlias native AI script function despawns a specific bot in the current NPC group by its alias.
()despawnBotByAlias(alias: s) // despawnBotByAlias_s_
- alias (string): The alias of the bot to despawn.
()despawnBotByAlias('(A:1000:10560)');
This example code despawns the bot with the alias (A:1000:10560)
.
If the bot with the given alias does not exist in the current NPC group, no action is taken.