GetAttachPos( <node index> )

Module: Vehicles
SP Only


Returns the origin and angles if the vehicle were to be attached to the path. The origin and angles are returned as a vector array of size 2. Origin is 1st and angles is 2nd.

Call this on:

A vehicle


pos = self GetAttachPos( node );
origin = pos[0];
angles = pos[1];

Required Args:

  • 1 : <node index> A node on the path to attach.