@name LilB
@inputs 
@outputs TarPos:vector Tar:entity
@persist Tar:entity TarPos:vector Props:array Prop:entity
@trigger 

runOnTick(1)
runOnChat(1)
if(first()){
    Players = players()
    }
if(chatClk(owner())){
    Chat = owner():lastSaid():explode(" ")
    if(Chat:string(1)=="/d"){
        hideChat(1)
        Props:propDelete()
        }
    if(Chat:string(1)=="/t"){
        hideChat(1)
        Tar = findPlayerByName(owner():lastSaid():sub(4))
        
        }
    }
TarPos = (Tar:pos()-Prop:pos())
if(Tar==noentity()){
    Tar = Players[1, entity]
    }
    

if(owner():keyAttack1()){
    Prop = propSpawn("models/props_junk/plasticbucket001a.mdl", entity():pos()+vec(0,0,20), 0)
    Prop:setMass(50000)
    Prop:applyForce((TarPos + $TarPos*5)*Prop:mass())
    Props:pushEntity(Prop)
    }
