@name TrainTester Speed
@persist GTable:gtable Prop:entity E:entity
@trigger all
@model models/props_lab/reciever01d.mdl

if(first() | duped()){
runOnTick(1)    
GTable = gTable("vel",2)
GTable:clear()

E = entity()
Prop = E:isWeldedTo()

}

if(GTable["active",number]){
GTable["speed",number] = Prop:vel():length() / 2
setName("TrainTester Speed [Speed : " + GTable["speed",number] + " ]")
}else{
GTable["speed",number] = 0
setName("TrainTester Speed [Speed : " + GTable["speed",number] + " ]")
}
