You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
botIndex(float): The position of the bot in the group.
Return values
botEid(string): The entityId given by the bot, or empty if the indexed bot is not from the group.
Examples
(index)getBotIndexByName("bot_toto");
($botEid)getBotEid(index);
if (index!=-1)
{
()phrasePushValue("entity", $botEid);
()phraseEndEmoteMsg(index, "PHRASE_YOUR_ARE_CLICKING_ON_ME");
}
This example code gets the bot index by its name and then gets its entityId in the group using the getBotEid function. If the index is not -1 (meaning the bot is in the group), it pushes the entityId on the parameter stack and ends an emote message with the phraseEndEmoteMsg function.