Class Value (2.48)


Methods
getName
----------
 
Variables
---------- ----------
 
Constants
---------- ----------


Methods


getName

getName()

Returns the name of the actuator/sensor/controller

Return Type:  string

Note:
Returns the name of the Sensor and the Actuator
Returns the name of the Controller with #CONTR#1(CONTR + controller position.
ie.  Controller named Fred in controller position 2.
Returns Fred#CONTR#2

Sample Code

# get the controller
controller = GameLogic.getCurrentController()

# get controller name
name = controller.getName()



Blender 3D
Game Engine