Home
Links
Help
Contact
Privacy Policy
Wind Turbine
Solar Panels
Class PyObjectPlus (2.48)
documentation index
Class Index
Method Index
Methods
----------
----------
Variables
isA
----------
Constants
----------
----------
Methods
isA
isA(Type)
Checks the Object type.
(KX_GameObject, SCA_ILogicBrick, KX_Scene, etc.)
Type: String
Return Type: Bool
1 = True
0 = False
Sample Code
# get the controller
controller = GameLogic.getCurrentController()
# get the object the controller attached to
owner = controller.getOwner()
# is owner a GameObject?
gameObject = owner.isA("KX_GameObject")
Blender 3D
Game Engine