@name Capture Point
@inputs 
@outputs 
@persist 
@trigger 

if(first() | duped()){
    holoCreate(1)
    holoScale(1, vec(7,7,0.1))
    holoColor(1, vec(randint(120,255),randint(120,255),randint(120,255)))
    }

timer("P_REFRESH", 1000)
if(clk("P_REFRESH")){
    findInSphere(entity():pos(), 50)
    findByClass("player")
    findSortByDistance(entity():pos())
    Find = findToArray()
    for(I=1, Find:count()){
        if(Find[I, entity]:pos():distance(entity():pos()) <= 30){
            holoColor(1, vec(255,0,0))
            }
            else{
                holoColor(1, vec(255,255,255))
                }
        }
    }
