Gibbing self before hitting target
I suppose this can be done casting rays, but I've never been good with those.
My guess for the code is like this:
Code:
function Update(self)
local vel = Vector(self.Vel.X,self.Vel.Y):SetMagnitude(50);
if SceneMan:CastStrengthRay(self.Pos,vel,1,nil,3,0,true) == true then
self.GibThis();
end
end
I based this one in a terrain-rape-reducer.