GetAnimTotalTime

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

See also: GetAnimCurrentTime

Variation 1: Returns the total animation time of the specified Ped.

Variation 2: Returns the total time of the specified animation.

Syntax

Variation 1:

float API.getAnimTotalTime(LocalHandle handle, string animDict, string animName);

Required Arguments

  • handle: parameter input should be in LocalHandle type.
  • animDict: parameter input should be in string type.
  • animName: parameter input should be in string type.


Variation 2:

float API.getAnimTotalTime(string animDict, string animName);

Required Arguments

  • animDict: parameter input should be in string type.
  • animName: parameter input should be in string type.


NOTE: This function returns data in float type.

Usage example(s)

// Variation 1
API.getAnimTotalTime(LocalHandle handle, string animDict, string animName);

// Variation 2
API.getAnimTotalTime(string animDict, string animName);


References