Creating a sensor on the fly

Hi I was wondering if it is possible to create a sensor on the fly in the ge. Maybe a nearr sensor.
Something simple like:

if owner[“property”]==True:
_____create near sensor here.

any thoughts on this are appreciated

No, this is not possible.

What is your problem?
I’m pretty sure you do not need to create a sensor on the fly.

If you want to detect the distance between two objects, or detect a group of objects within a certain distance, then you can do that in a relatively simple manner with vectors.

I guess I was thinking more along the lines of changing the range of the near sensor. Ive always just used two sensors. Seems like there should be an eaasiee way

changing the range is quite easy. seeKX_NearSensor