Hey Boys'n'Gurls,
i want to count the frames of an active animation, but i get "nil" as a value .
local framecount = getObject("ActiveAnimations["..game:getLink(VGameUsedItem):getName().."]"):getInt(VAnimationFrameCount)
print(framecount)
Animation of the object has 2 Frames. I expected that i get this in return, but all i get is a "nil" when printing the int.
Any ideas?
EDIT:
Meh... i know whats wrong. The AnimationFrameCount Value counts frames which are already passed. Not the total framecount. I'll do it otherwise then.... *_*
thanks anyway
~Sebastian