@name Tele Kinesis
@inputs 
@outputs
@persist R:array
@trigger 
@model models/Gibs/wood_gib01e.mdl
#runOnTick(1)
E=entity():isConstrainedTo()
if(first()){
    R=array()
    R[1,entity]=E
    R[2,entity]=entity()
}
if(E:mass()<50){E:setMass(50)}
rangerFilter(R)
Offset=vec(0,0,50) #height offset
XYZ=rangerOffset(80000,owner():shootPos(),owner():eye()):position()+Offset
#XYZ2=owner():aimPos()+Offset
#Speed=2000
entity():setAlpha(10)
entity():setColor(vec())

#entity():applyForce(Speed*(XYZ-E:pos())-E:vel()*(E:mass()+entity():mass()))
runOnChat(1)
K=chatClk()
Chat=owner():lastSaid()

if(K&Chat=="No Kinetic"|!E){selfDestruct() print("Ending Telekinetic Link")}
Time=30
interval(Time)
Self=entity()
#XYZ=owner():aimPos()+vec(0,0,50)
Mass=(Self:mass()+E:mass())/8
K=1/(Time/1000) #Speed constant
#K=1/0.03
Dist=XYZ-Self:pos()
#Dist=vec(0,0,-1)
Self:applyForce(Mass*(K*Dist - Self:vel()))
