@name Flag Point
@inputs 
@outputs Pos:vector
@persist Point:entity Flag:entity
@trigger 

if(first() | duped()){
    E = entity()
    if(E:isConstrained()){
        E:isConstrainedTo():setColor(vec(0,0,255))
        Point = E:isConstrainedTo()
        }
    findIncludeModel("models/hunter/blocks/cube025x025x025.mdl")
    findInSphere(entity():pos(), 200)
    Found = findToArray()
    for(I=1, Found:count()){
        if(Found[I, entity]:getColor()==vec(0,0,255)){
            Flag = Found[I, entity]
            print("Found")
            }
        }
    }


interval(100)
if(ceil(Flag:pos())==ceil(Point:pos())){
    print("adsasd")
    }
