- Documentation
- Client functions
- engineGetIFPAnimations
Function
engineGetIFPAnimations
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