To add some realism effects to pipes, fuel tanks etc..
e.g.
A bullet hits a fuel tank, the tank doesn't explode, but does cause a leak
I have a script to create particle effects at the right point on the object, but need the relative position and direction of the attacker, with respect to the objects origin.
This info + a bit of trig, allows the effect to be created at the correct position on the object.
(Imagine a 50m long pipeline object, or large fuel tank object)
To get the info required, i need to find outthe ID of who / what attacked the object / building
Cheers,
Marksman