@name aimNormal
@inputs 
@outputs 
@persist U E:entity First
@trigger 
N = 11.8125
runOnTick(1)

if(owner():keyUse() & !U) {
    First = 1
    E = propSpawn("models/hunter/blocks/cube025x025x025.mdl",1)
    if(owner():aimEntity():pos() == vec()) {
        E:setPos(owner():aimPos() + owner():aimNormal()*(N/2))
    }
    else {
        E:setPos(owner():aimEntity():pos()+owner():aimNormal()*N)
    }
}

U = owner():keyUse()

if(First & E:pos() == vec()) {
    propDeleteAll()
    selfDestruct()
}


