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

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


ReturnPlayerControl()

Module: Vehicles
SP Only

Summary:

After controlling a vehicle from script using something like setvehgoalpos(), if the vehicle is being driven by a player, you call this function to return control of the vehicle to the player.


Call this on: a vehicle

Example:

cobra ReturnPlayerControl();

Required arguments:

none


Optional arguments:

none


Notes:

none