PlayEntityAnimation

From GT-MP
Jump to: navigation, search
PlayEntityAnimation
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Make the specified entity play the specified animation.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In Javascript
Client-Side Function

API.playEntityAnimation(LocalHandle entity, string animDict, string animName, double speed, bool loop, bool stayInAnim, double delta, int flags);

Required Arguments

  • entity parameter input should be in LocalHandle type.
  • animDict parameter input should be in string type.
  • animName parameter input should be in string type.
  • speed parameter input should be in double type.
  • loop parameter input should be in bool type.
  • stayInAnim parameter input should be in bool type.
  • delta parameter input should be in double type.
  • flags parameter input should be in int type.

Usage example

In Javascript
Client-Side Function

API.playEntityAnimation(LocalHandle entity, string animDict, string animName, double speed, bool loop, bool stayInAnim, double delta, int flags);

References