Copy Object Location Script?

I was wondering if there would be any way to make a script that copies the location of a specified object. I need it for a game that I am making, its going to be like Portal. I’ve got the gun, the portal, and being able to see whats at the other end of the portal, but I can’t figure out a way to go through it without a script. I have no experience with Python scripting, so I was wondering if anyone out there knew how.


See this thread:

For a very simple copy location, you could do:

object.position = portal.position

Thanks a million! :slight_smile: