Try this
Edit:Code:Pos = E:pos() Vel = E:vel():normalized() Dist = owner():shootPos():distance(Pos) Pos2 = Pos + Vel * Dist Dist2 = owner():shootPos():distance(Pos2) if (Dist2 < 200 & Dist < 1000) { #if it's closer than 1000 units and it's about to travel through a sphere 200 units around you... #shoot it down }
Also, to get the acceleration you can simply do $Vel, like so:
Code:@persist SpeedVec:vector SpeedNum runOnTick(1) SpeedVec = entity():vel() SpeedNum = SpeedVec:length() AccVec = $SpeedVec AccNum = $SpeedNum


LinkBack URL
About LinkBacks
) but I don't want it. I want the one I mentioned above to work
I think my way is right, but I just can't solve those equations 



Reply With Quote



os()-Obj



Bookmarks