diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2010-01-30 21:53:33 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2010-01-30 21:53:33 +0300 |
commit | f7b7d7952d5edc22e717ab20a96f77cb3c1be87b (patch) | |
tree | c199ed14329d8ef3358cd6ea88fbb8f763bc8af2 /source/gameengine/PyDoc | |
parent | cfdd53a4f8e7e80754fd1c6c796bf4410a0213a5 (diff) |
BGE: patch [#20293] Added python sensor attribute: Status.
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r-- | source/gameengine/PyDoc/GameTypes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/GameTypes.py b/source/gameengine/PyDoc/GameTypes.py index e6d51e85af6..390fb357761 100644 --- a/source/gameengine/PyDoc/GameTypes.py +++ b/source/gameengine/PyDoc/GameTypes.py @@ -142,6 +142,11 @@ class SCA_ISensor(SCA_ILogicBrick): @type triggered: boolean @ivar positive: True if this sensor brick is in a positive state. (read-only) @type positive: boolean + @ivar status: The status of the sensor. (read-only) + KX_SENSOR_INACTIVE, KX_SENSOR_JUST_ACTIVATED, + KX_SENSOR_ACTIVE, KX_SENSOR_JUST_DEACTIVATED + Note: this convenient attribute combines the values of triggered and positive attributes + @type status: int from 0-3. """ def reset(): |