This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/gameengine/Ketsji
Mateo de Mayo 23f54076db BGE: Added getActionName() function to KX_GameObject()
It works similar to getActionFrame(), you have to give a layer or not (for layer 0) as the argument and it returns the name of the animation that the object is currently playing.

Example:

```
import bge
own = bge.logic.getCurrentController().owner
own.playAction("SomeAction",0,20)
print(own.getActionName())
```
>> SomeAction

Here is an example file, just open the blend file with the terminal opened
and press P, you can see how the current animation is being printed:
{F217484}

Reviewers: moguri, hg1, panzergame, campbellbarton

Reviewed By: panzergame

Subscribers: campbellbarton, hg1, #game_engine

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1443
2015-08-04 00:10:33 +02:00
..
2014-10-07 15:47:32 -05:00
2013-03-18 11:44:56 +00:00
2014-10-07 15:47:32 -05:00
2012-09-16 04:58:18 +00:00
2015-03-23 21:43:42 +01:00
2012-10-29 02:11:40 +00:00
2012-09-16 04:58:18 +00:00
2013-03-29 06:21:28 +00:00
2014-07-21 10:53:07 +10:00
2012-09-16 04:58:18 +00:00
2013-03-26 07:29:01 +00:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00