Class KX_VisibilityActuator (2.48)


Methods
set
----------
 
Variables
---------- ----------
 
Constants
---------- ----------

Inherited Methods:  Class SCA_ILogicBrick
getExecutePriority setExecutePriority
getOwner ----------

Inherited Methods:  Class PyObjectPlus
isA ----------

Inherited Methods:  Class Value
getName ----------



Methods



set

set(visible)

Turns the object visible or invisible.

visible:
Type:  bool
   True or 1 = visible
   False or 0 = invisible

Sample Code

# get the controller
controller = GameLogic.getCurrentController()

# get the actuator attached to the controller named Invisible
act = controller.getActuator("Invisible")

# make object invisible
act.set(False)

# use it
GameLogic.addActiveActuator( act, True)



Blender 3D
Game Engine