The "vngen_emote_create" Function
#
SyntaxArgument | Type | Description |
---|---|---|
id | real/string | The unique identifier to use for the new emote |
sprite | sprite | The sprite to display as an emote |
x | real | The horizontal position to display the emote, relative to the global offset |
y | real | The vertical position to display the emote, relative to the global offset |
z | real | The drawing depth of the emote, relative to other emotes only |
[loop] | boolean | Optional: Enables or disables endlessly looping the emote |
#
DescriptionCreates 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.