own = cont.actuators #has never let me down before.
track_to = own.actuators[‘track’].object #works…
and I no longer get the error???
!!Except!! it does not actually track the player, even if I set it in the actuator? I must be doing something wron somewhere…I have ised track object many times and never had this issue…I need to just check and recheck what is going on in my script, maybe it has something to do with my logic…and I am changing it somewhere else…more than likely some silly mistake somewhere.
ok…I was not getting an error, but it was still wrong…
two issues(really simple)
after I defined it as “track_to”
I just needed to reassign the value as “track_to.object = some_object”
it should have been
track_to = own.actuators[‘trackTo…or whatever string I used’]
track_to.object = some_object
as Cotaks stated.
I still need to connect a testing condition to the actuator like “always”…it does not matter if it is connected to the python controller…
who would have thought.???
I tested it with nothing assigned in the actuator and it still changes ‘targets’…so solved.