Of course it wont work, you attach the trail to airplane's base coordinate.
If you want to attach it to your plane's wing you should use:
Code:
vec_for_vertex (trail.x, _my_plane_entity, wing_vertex);


wing_vertex is the vertex located in your model(in the wing) that you want your trail attached. You can see it in Med.