@name Basic_grid
@inputs 
@outputs 
@persist A B C Grid [O E Ew]:entity [Aim Pos]:vector
@trigger 
interval(1)
if(first()){
A=0
B=0
C=0
Grid = 5
O=owner()
E=entity()
Ew=entity():isWeldedTo()
holoCreate(1)
holoPos(1,E:pos()+E:up()*10+E:right()*0+E:forward()*0)
holoAng(1,E:angles()+ang(0,0,0))
holoColor(1,vec(1,255,1))
holoAlpha(1,255)
holoScale(1,vec(Grid/12,Grid/12,Grid/12))
holoModel(1,"cube")
holoShadow(1,1)
holoParent(1,E)


}
Aim = owner():aimPos()
Pos = (round(Aim/Grid)*Grid+vec(0,0,Grid/2))
holoPos(1,Pos)
