@name Grab player
@inputs
@outputs
@persist Player:entity A
@trigger
runOnTick(1)
runOnChat(1)
if(first()){
    holoCreate(1)
    holoCreate(2)
  #  holoAlpha(1,0)
  #  holoAlpha(2,0)
    holoPos(2,holoEntity(1):pos()+vec(300,0,0))
    holoParent(2,holoEntity(1))
}
holoPos(1,owner():pos()+vec(0,0,68))
holoAng(1,owner():eyeAngles())

S=owner():lastSaid():lower():explode(" ")
if(S[1,string]==">grab"){
    TeamPlayer=findPlayerByName(S[2,string])
    A=1
}
elseif(S[1,string]==">stop"){
    A=0
}
if(A){
    if(TeamPlayer:isPlayer()){
        TeamPlayer:applyPlayerForce((holoEntity(2):pos()-TeamPlayer:pos())*2)
    }
}

