So I need a script to figure out what exactly a certain vehicle has hit.
the package part is pretty easy:
package WtfAmHit
{
function DriftingJeepVehicle::OnImpact(%this,%obj,%col,%pos,%speed)
{
//What now
}
};
activatePackage(WtfAmHit);
%pos is highly unreliable, the given position is way off from where the collision occurs. %speed is only a scalar value, %col is always 0, and I don't have a clue what %this is.
I could do some stuff with container searches, but that is messy and I wanted to know if there is a cut and dry method before I jump all the way in.