@name Chat Penetrator
@inputs 
@outputs Length
@persist 
@trigger 
runOnChat(1)
O=owner()
Chat=O:lastSaid()
Com="pen"
In="in"
Out="out"
COM=Chat:find(Com)
IN=Chat:find(In)
OUT=Chat:find(Out)
Retract=5
Extend=200

if(COM&chatClk(O)){
    if(O:pos():distance(entity():pos())<300){
        if(IN){Length=Retract}
        if(OUT){Length=Extend}
    }
}
Driver=entity():isConstrainedTo():driver()
if(Driver){
    if(Driver:keyAttack1()){Length=Retract}
    if(Driver:keyAttack2()){Length=Extend}
}
