Method PlayerBot.DoBotAction [-] [+]

Execute a specific action on a bot.

This calls PlayerbotAI::DoSpecificAction(actionName, Event(), false, qualifier). Action names are the same as those used by mod-playerbots' action/strategy system. Sample action names: - "follow", "stay", "sit", "loot", "mount", "dismount", "attack", "melee" - "use ", "cast ", "buy", "sell", "accept quest", "turn in petition" - "food", "drink", "healing potion", "mana potion", "heal", "flee", "travel"

See modules/mod-playerbots/src/Ai/Base/ActionContext.h for a more complete list.

Example: local ok = DoBotAction(guidLow, "follow") local ok = DoBotAction(guidLow, "cast Fireball", "targetname")

Synopsis

success = Playerbot.DoBotAction( guidLow, actionName, qualifier )

Arguments

number guidLow

Bot GUID low.

Valid numbers: integers from 0 to 4,294,967,295.

string actionName

Action to perform.

string qualifier
See method description.

Returns

boolean success
See method description.

Generated on
©2026 - ALE Lua Engine