The "vngen_emote_create" Function
vngen_emote_create(id, sprite, x, y, z, [loop]);
|real/string||The unique identifier to use for the new emote|
|sprite||The sprite to display as an emote|
|real||The horizontal position to display the emote, relative to the global offset|
|real||The vertical position to display the emote, relative to the global offset|
|real||The drawing depth of the emote, relative to other emotes only|
|boolean||Optional: Enables or disables endlessly looping the emote|
Creates a new emote which will be displayed until the sprite animation is complete, at which point it will self-destruct and be removed from memory. Alternatively, the emote can be set to loop endlessly, in which case it will continue to exist until destroyed manually.
Multiple emotes can exist simultaneously, however no two emotes may share the same ID. VNgen entity IDs are arbitrary and most can be either numbers or strings, but bear in mind that -1 is reserved as 'null' and cannot be used as an ID.
vngen_emote_create("emote", spr_emote, 50, 50, -1, true);