@name Stalker
@inputs 
@outputs 
@persist Tar:entity
@trigger 

runOnTick(1)
runOnChat(1)

O=owner()
Chat=O:lastSaid()
Com="Stalk"
Brk="<"

COM=Chat:find(Com)
BRK=Chat:find(Brk)

if(COM&chatClk()){
    hideChat(1)
    if(BRK){
        Data=Chat:explode(Brk)[2,string]
        Tar=findPlayerByName(Data)
    }
    hideChat(0)
}

if(O:keyUse()){
    O:teleport(Tar:pos()+-Tar:eye()*150)
}
