The animation mapper is as simple as mapping the animation name of the animated mesh you have selected to a name in the Mapper list.
So, the left side of the list is anim names that we can use in script to get the name of an animation. The cool thing about this is if you have 2 animated meshes, both with a walk anim called walk-00 or Walk_1 for example, these can be chosen on the animation mapper combobox item for the "Walk" mapped name.
Then in lua you can use this command and retrieve the name of the animation.
- Code: Select all
WalkAnimationName = anim.getFromMap(objID, "Walk");
lprint("WalkAnimationName = "..WalkAnimationName )
-- Prints either "walk-00" or "Walk_1" depending on which entity the script was called.
Hope this helps..
Basically, it is a way to get an animation name from an entity that can be shared on a single script between multiple entities.