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

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


SetVehGoalPos( <goalpos> <stopAtGoal> )

Module: Vehicles

Summary:

Set the target position for this vehicle.


Call this on: a vehicle

Example:

tank SetVehGoalPos( (0, 0, 0), 1 )

Required arguments:

  1. <goal position> The goal position


Optional arguments:

  1. <stop at goal> Whether the vehicle should slow down to stop at the goal position


Notes:

none