@name Lock on
@inputs Ignore:entity
@outputs
@persist Ranger:ranger
runOnTick(1)

Ent = owner():aimEntity()

if (first()) {
    holoCreate(1)
    holoMaterial(1,"models/wireframe")
    holoScale(1,vec(1.5,1.5,3))
    holoVisible(1,players(),0)
    holoVisible(1,owner(),1)
}

rangerFilter(Ignore)
RANGER = rangerOffset(999999,owner():shootPos(),owner():eye()):pos()


if (Ent:isPlayer()) {
    holoPos(1,Ent:pos()+vec(0,0,50))
    holoParent(1,Ent)
    holoColor(1,vec(255,0,0))
}
