@name Ranger2 Example
@inputs 
@outputs 
@persist 
@trigger 
@model models/hunter/plates/plate1x1.mdl
runOnTick(1)

E = entity()

Height = 58
WHEELMODEL = "models/hunter/blocks/cube025x025x025.mdl"

rangerFilter(E) LFR = rangerOffset(Height,E:pos()+E:right()*30,-E:up())
rangerFilter(E) RFR = rangerOffset(Height,E:pos()-E:right()*30,-E:up())

LFD = LFR:distance()
RFD = RFR:distance()

LFRP = LFR:pos()
RFRP = RFR:pos()

Apply = (LFR:distance()+RFR:distance())

if (first() | dupefinished()) {
    E:setMass(1000)
    
    holoCreate(1) holoModel(1,WHEELMODEL) holoParent(1,E)
    holoCreate(2) holoModel(2,WHEELMODEL) holoParent(2,E)
}

holoPos(1,LFRP+vec(0,0,5.90625) )
holoPos(2,RFRP+vec(0,0,5.90625) )

if(Apply > 29) {
    E:applyForce(E:up()*E:vel():z()*E:mass()/100)
}
