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
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 guidLowBot GUID low.
Valid numbers: integers from 0 to 4,294,967,295.
string actionNameAction to perform.
string qualifier- See method description.
Returns
boolean success- See method description.