@name 
@inputs P Y R
@outputs Ang:angle 
@persist P Y R
@trigger 
runOnTick(1)
#+Gate Angle Decompose
findByClass("player")
findDisallowPlayer(owner())
findSortByDistance(owner():pos())
P1=findResult(2)
Tpos=P1:pos()+vec(0,0,0)
Epos=owner():pos()
Ang=(Tpos-Epos):toAngle()

P = Ang:pitch()
Y= Ang:yaw()
R = Ang:roll()

if(owner():keyUse()){concmd("setAng "+P+" "+Y+" "+R)}
