@name 
@inputs UP DOWN 
@outputs Angle:angle On
@persist Angle:angle
@trigger 
interval(500)
if(first()){
 
X = 0
On = 1}
if(UP ==1){
   X = X - 50
}
if(DOWN ==1){
    X = X + 50
}
Y = entity():angles():yaw() * -180
   Angle = ang(vec(X,0,Y))

