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

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


MayMoveFromPointToPoint( <start> <end> )

Module: AI
SP Only

Summary:

Check whether the actor can move from a given point to a given point. Does not check friendly fire and in goal radius unlike maymovetopoint


Call this on: <actor> An actor

Example:

 if ( !self MayMoveFromPointToPoint( startPoint endPoint ) )...

Required arguments:

  1. <start> (point) start position.
  2. <end> (point) end position.


Optional arguments:

  1. <check drop> checks if the point would cause the AI to drop. Defaults to true.


Notes:

none