Recording/Printing Rotation for an object (Needed for Tracking)

Is there is a script that records the rotation of an object? There reason I’m asking is, I have a script that records the mouse’s position, so that works fine for my player controlled objects. But I need one that records it for, say, the track to actuator, so I can use it on my AI units.(Using constraints on duplicate AI units, causes errors in the constraint.) That is why I need something that will Print the rotation to a property.

Thanks!

obj[‘property’] = obj.WorldOrientation
obj[‘property2’] = obj.WorldPosition

etc