@name Holo Guards
interval(10)
if(first())
{
    entity():setColor(0,0,0,0)
    
    P = holoCreate(1)
    holoModel(1,"models/player/police.mdl")
    #ifdef holoAnim(number,string)
        holoAnim(1,"ACT_GMOD_TAUNT_DANCE")
        timer("rpt",holoAnimLength(1)*1000)
    #else
        print("The server you are on does not have holoAnim enabled. If you are the owner of the server, please enable holoanim by installing wire-extras if you haven't and typing \"wire_expression2_extension_enable holoanim; wire_expression2_reload\" in the console.")
        selfDestruct()
    #endif
    holoParent(1,entity())
    
    W = holoCreate(2,P:attachmentPos("anim_attachment_RH"),vec(1),P:attachmentAng("anim_attachment_RH"))
    holoPos(2,W:toWorld(vec(7.75,-1,5)))
    holoModel(2,"models/weapons/w_smg1.mdl")
    holoParentAttachment(2,P,"anim_attachment_RH")
}

if(clk("rpt"))
{
    stoptimer("rpt")
    holoAnim(1,"ACT_GMOD_TAUNT_DANCE")
    timer("rpt",holoAnimLength(1)*1000)
}
