@name HoloHeadAng
@inputs 
@outputs User:entity 
@persist 
@trigger 
runOnTick(1)

User = findPlayerByName("Divalent")

if (first()) {
    holoCreate(1)
    holoModel(1,"models/Humans/Group01/male_07.mdl")
    holoAng(1,ang(0,225.5,0))
    holoParent(1,entity())
}

local Pos = User:pos()
local Ang = (Pos-Pos):toAngle()*ang(0,1,1)
local EyePos = User:attachmentPos("eyes")
local Yaw = -bearing(Pos,Ang,EyePos)
holoSetPose(1,"head_yaw",Yaw)

#[
head_yaw
head_pitch
head_roll

