-
Notifications
You must be signed in to change notification settings - Fork 94
emote
Ryzom Core Wiki edited this page Jul 8, 2024
·
4 revisions
title: Emote description: published: true date: 2023-03-16T23:06:32.167Z tags: editor: markdown dateCreated: 2023-03-16T22:22:56.330Z
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 (context): The group of the bot that does the emote.
- botname1 (string): The name of the bot that does the emote.
- emote (string): The name of the emote.
- emote (string): The name of the emote.
- entityId (string): The entityId of the bot that does the emote.
- emote (string): The name of the emote.
(@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.