@name Entity vision
@inputs 
@outputs Obj:array C D 
@persist C O:entity
@trigger 
@model models/props_junk/PopCan01a.mdl
#By Captain Maim STEAM_0:1:8017844
#displays XYZ axies onto all objects on map, only I can see them. 
interval(10)
O=owner()
findInSphere(entity():pos(),15000)
findExcludeClass("holo")
Everyone=0 #1 lets everyone see, 0 restricts it to only you
#findIncludeClass("prop_physics")
Obj=findToArray()
while(C<=Obj:count()&perf()){
    Ob=Obj[C,entity]
    #print(Ob:toString())
    S=2 #scale
    M=0.1 #small
    Off=Ob:radius()+5
    Oba=array(Ob:forward(),Ob:right(),Ob:up())
    Obc=array(vec(255,0,0),vec(0,255,0),vec(0,0,255))
    Obb=array(vec(S,M,M),vec(M,S,M),vec(M,M,S))
    for(D=1,3){
        if(!Ob){holoDelete(C*3+D)}
        if(!holoEntity(C*3+D)){
            holoCreate(C*3+D,Ob:pos()+Oba[D,vector]*Off,Obb[D,vector],Ob:angles(),Obc[D,vector])
            holoParent(C*3+D,Ob)
            holoVisible(C*3+D,players(),Everyone)
            holoVisible(C*3+D,O,1)
            holoDisableShading(C*3+D,1) #makes it glow in the dark?
            holoShadow(C*3+D,0)
        }else{
            
            holoPos(C*3+D,Ob:pos()+Oba[D,vector]*Off)
            holoAng(C*3+D,Ob:angles())
        }
    }
    #holoCreate(C*3+1,Ob:pos()+Ob:right()*Off,vec(M,S,M),Ob:angles(),vec(0,255,0))
    #holoCreate(C*3+2,Ob:pos()+Ob:forward()*Off,vec(S,M,M),Ob:angles(),vec(255,0,0))
    C++
    if(C>Obj:count()){C=0}
    
}

