ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineGetIFPAnimations

Function

engineGetIFPAnimations

ClientGame engineTrilogy Hub only

Returns the list of animations in a loaded IFP block: a table of { name, duration, bones } (duration in seconds, bone count).

Syntax

table engineGetIFPAnimations(element ifp)

Arguments

ifpelement
The IFP element.

Returns

An animation list or false.

Example

for _, a in ipairs(engineGetIFPAnimations(engineLoadIFP("anim/taniec.ifp", "taniec.blok")) or {}) do
    outputChatBox(("%s (%.1f s)"):format(a.name, a.duration))
end

See also