Hey guys i have a problem i am newbie at python with blender. I want to have it track to a different object for a different int value.
import GameLogic as g
get controller
cont = GameLogic.getCurrentController()
own = cont.owner
y = own[“Int”]
x = “Empty1”get actuator attached to the controller named RaceCam
act = cont.actuators[“123”]
set object being tracked
act.object = x
activating the actuator
cont.activate(“123”)
if y == 1:
act.object = “Empty11”