natiny.animator.get_loop

Lua
natiny.animator.get_loop(animator) -> loop

Returns whether looping is enabled for this animator.

Parameters

Name Type Description
animator number Animator handle from natiny.animator.create

Returns

Type Description
boolean true when looping is enabled; false for a stale nonzero animator handle

Example

Lua
local looping = natiny.animator.get_loop(hero_legs)
print(looping and "looping" or "one shot")