@name GET ANG
@outputs Angs:angle E:entity Pitch
runOnTick(1)

E = entity()

if(first()){
    
holoCreate(1)
holoModel(1,"models/props_vehicles/car004a_physics.mdl")
holoScale(1,vec(1,1,1)/10)
holoPos(1,E:toWorld(vec(0,0,0)))
holoParent(1,E)

holoCreate(2)
holoModel(2,"cube")
holoPos(2,E:toWorld(vec(0,0,0)))
}



rangerFilter(E)
Center = rangerOffset(1200,holoEntity(1):toWorld(vec(0,0,0)),-holoEntity(1):up())
holoPos(2,Center:position())
holoAng(2,Center:entity():angles())

Angs = holoEntity(2):angles()
Pitch = Angs:pitch()

holoAng(1,ang(Pitch,0,0))
