What i want to do:
If player/ avatar is close to an object, objects texture changes to a higher rez one/ object changes material.
- How to get distance between two objects using script?
- How to apply/change texture to an object using script?
What i want to do:
If player/ avatar is close to an object, objects texture changes to a higher rez one/ object changes material.
You don't even need to write python code, you can change the material with level of detail (LOD)

Create different objects (or duplicate the same mesh Shift-D if don't want lower polygon count)
The effect is visible in the viewport:

A python soultion would be to combine snippets from: