diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-07-10 18:23:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-07-10 18:23:19 +0400 |
commit | 310a37c29c283b2a7aef0ec2e3cc7fe366b23698 (patch) | |
tree | e079ed16f552083b09af23d916eb0561bb14d37d /source/gameengine/PyDoc/BL_ActionActuator.py | |
parent | 99fdf27af92b9bd9d05c108f2c2c8a240c5536bc (diff) |
Adding an option for action actuator - "Continue" this means animations always play from where they left off. Continue was the 2.46 operation too, so new functionality is the option to disable.
When using states, an action like kick or throw can often switch out before finishing playing the action, and there was no way to play from the start frame the second time round. (even setting the actions current frame through python doesn't work work)
Diffstat (limited to 'source/gameengine/PyDoc/BL_ActionActuator.py')
-rw-r--r-- | source/gameengine/PyDoc/BL_ActionActuator.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/BL_ActionActuator.py b/source/gameengine/PyDoc/BL_ActionActuator.py index 41f41080c31..d56888cde80 100644 --- a/source/gameengine/PyDoc/BL_ActionActuator.py +++ b/source/gameengine/PyDoc/BL_ActionActuator.py @@ -86,6 +86,14 @@ class BL_ActionActuator(SCA_IActuator): @param mode: KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND @type mode: integer """ + + def setContinue(cont): + """ + Set the actions continue option True or False. see getContinue. + + @param cont: The continue option. + @type cont: bool + """ def getType(): """ @@ -94,6 +102,13 @@ class BL_ActionActuator(SCA_IActuator): @rtype: integer @return: KX_ACTIONACT_PLAY, KX_ACTIONACT_PROPERTY, KX_ACTIONACT_FLIPPER, KX_ACTIONACT_LOOPSTOP, KX_ACTIONACT_LOOPEND """ + + def getContinue(): + """ + When True, the action will always play from where last left off, otherwise negative events to this actuator will reset it to its start frame. + + @rtype: bool + """ def getAction(): """ |