Call of Duty 4: Scripting Reference - AI::CheckProne

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


CheckProne( <position>, <yaw>, <is prone> )

Module: AI
SP Only

Summary:

Returns true when a character can go prone at the specified position. Specifically setup for use by AI characters.


Call this on: <actor> An actor

Example:

canFitProne = self CheckProne( origin, yaw, alreadyProne );

Required arguments:

  1. <position>(vector) The position of the prone character.
  2. <yaw>(float) The world yaw in degrees.
  3. <is prone>(bool) Flag if the character is already prone.


Optional arguments:

none


Notes:

none