@name 
@inputs 
@outputs 
@persist Distance Array:array Ent:entity I:number
@trigger 

if(first()){
E = entity()
E:setPos(E:pos() + vec(0,0,70))
holoCreate(1)
holoParent(1,E)
holoModel(1,"models/Zombie/Classic.mdl")
}

timer("check",160)
Distance = 50
Result = ""
Times = 100
Damage = 20
interval(2000)
if (clk("check")) {
    findInSphere(entity():pos(), Distance)
    Array = findToArray()
    for(I=1,Array:count()) {
        if(Array[I,entity]:isPlayer()) {
            if(Array[I,entity]:isAlive()) {
                if (Result != "whip") {     
                    E:setAng(Array[I,entity]:angles())             
timer("drop",1000)

timer("reset",5000)

}}}}}
if(clk("drop")){
    holoAnim(1,21)
    Ent = propSpawn("models/props_junk/TrashDumpster01a.mdl",0)
    Ent:setPos(Array[I,entity]:pos() + vec(0,0,200))
Ent:setMass(9999)

}
if(clk("reset")){Ent:propBreak()}

