This commit is contained in:
Andre Susano Pinto
2008-06-30 22:57:52 +00:00
parent 09c898bd65
commit c7dbc65488
144 changed files with 5841 additions and 869 deletions

View File

@@ -46,4 +46,12 @@ class SCA_PythonController(SCA_IController):
@type script: string.
"""
def getState():
"""
Get the controllers state bitmask, this can be used with the GameObject's state to test if the the controller is active.
This for instance will always be true however you could compare with a previous state to see when the state was activated.
GameLogic.getCurrentController().getState() & GameLogic.getCurrentController().getOwner().getState()
@rtype: int
"""