Accessing actuator values with Python?

is there a way to access values inside an actuator and alter them with python for example if i wanted to be able to change the values of the speed in the motion actuator while in game with a python script?

http://bgepython.tutorialsforblender3d.com/Actuators
For example:
[Keyboard sensor]–>[Python controller]–>[motion actuator]

script:


import bge

# get the controller
cont = bge.logic.getCurrentController()
# get the sensor
sens = cont.sensors["keyboard"]
# get the actuator attached to the controller
act = cont.actuators["motion"]

# set object movement to 3 on X axis and 1 on Z axis 
act.dLoc = [ 3.0, 0.0, 1.0]
# now activate the actuator
cont.activate(act)

Code not tested :slight_smile:

BGE API there i a section with the actuators.

e.g. the Object Actuator (motion actuator in the GUI)

Thanx guys!