import bge
cont=bge.logic.getCurrentController()
own=cont.owner
always=cont.sensors['Always']
always2=cont.sensors['Always1']
if always.positive or 'init' not in own:
D=30
if 'init' not in own:
own['Init']=True
own['ItemList']=[]
scene=bge.logic.getCurrentScene()
for items in scene.objects:
if own.getDistanceTo(items)<D and 'Property' in items:
own['ItemList']+=[items]
if always2.positive:
for items in own['ItemList']:
addObject=scene.addObject("blip",own,5)
addObject.setParent(own,0,1)
addObject.worldPosition=own.worldPosition+((items.worldPosition*own.worldOrientation)*.05)
Note this needs work, and is close but not working.
It’s generally discouraged to post non-functioning resources on this forum, people who look at these threads expect something complete enough to work out of the box (not to mention possibly be applicable to their games).
Also, you continue to post .blend files without much in the way of documentation or even a good description of what it does. This is why you notice few, if any, looking at your threads and using your stuff.