@name HoloAnim Tester
@inputs 
@outputs 
@persist NUMBER MODEL:string Prefix:string
@trigger 
runOnTick(1)


if(first()){
holoCreate(1)
holoParent(1,entity())

MODEL = "models/Humans/Group01/Male_04.mdl"
holoModel(1,MODEL)

    NUMBER = 0
}
print(_HUD_PRINTCENTER,NUMBER:toString())



if(changed(owner():keyUse())){
    if(owner():keyUse() == 1){
    NUMBER = NUMBER + 1
    holoAnim(1,NUMBER)}}

if(changed(owner():keyReload())){
        if(owner():keyReload() == 1){
NUMBER = NUMBER - 1
holoAnim(1,NUMBER)}}


Prefix = ">"
    Said = owner():lastSaid()
    if(Said:index(1) == Prefix) {
        hideChat(1)
        MODEL = Said:sub(2)
        
        if(changed(Said)){NUMBER = 0
            holoSetPose(1,"aim_yaw",ang(0,90,0):yaw()) 
            holoModel(1,MODEL)}}
    
    

