waypoint help (track to bug)

Hi,
I really need help.
I want that a object( wich is on layer x ) track to a spawned object (wich is on layer xxx).
I tryed it but it seams that the spawned obj is renamed durring the add object process pls help me I need these waypoints (seams like a logib brick bug to me :frowning: :frowning: )

(@ Ideasman I saw ur script on a topic wich was called something like “when adding objects how is the name of the added object”

could u make a .blend file pls :slight_smile: :slight_smile: )
here a test file http://2mean.com/s/test_file(1).blend

All added objects have the name of its “Master”. The master itself is not present within the scene, but in the list of inactive objects.

but i cant use the spawned (added) object for the track to function :frowning: :frowning:

you can change the target object with python.
See http://www.blender.org/documentation/249PythonDoc/GE/GameTypes.KX_TrackToActuator-class.html