Actuator Logic Brick: name

Name
  • Returns the name of the logic brick.

Return Type:
  • string
Sample Code


################  get the name of an actuator
  
# import bge module

import bge

# get the controller
cont = bge.logic.getCurrentController()

# get a list of the attached actuators
actList = cont.actuators

# get 1st actuator in list
act_1 = actList[0]

# get name of the actuator
name = act_1.name