The emote native AI script function allows a NPC or group of NPCs to launch an emote.
The emote(c, s, s)
and emote(s, s)
functions allow a specific bot to perform an emote. The emote(s)
function launches the emote for all bots in the current group.
()emote(group1: c, botname1: s, emote: s) // emote_css_
()emote(emote: s, entityId: s) // emote_ss_
()emote(emote: s) // emote_s_
(@group1)group_name.context();
()emote(@group1, "bob", "sad");
This example code launches the "sad" emote for bot "bob" in group "group_name".
($playerEid)getRandomPlayerAggroListTarget(0);
()emote("smile", $playerEid);
This example code gets a random player from the current group's aggro list and launches the "smile" emote for that player.
()emote("angry");
This example code launches the "angry" emote for all bots in the current group.