Call of Duty 4: Scripting Reference - Vehicles::GetAttachPos

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


GetAttachPos( <node index> )

Module: Vehicles
SP Only

Summary:

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

Example:

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

Required arguments:

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


Optional arguments:

none


Notes:

none