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

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


SetEngagementMinDist( <min dist>, <min falloff dist> )

Module: AI
SP Only

Summary:

Sets the min engagement distances used when selecting cover nodes.


Call this on: <actor> An actor

Example:

self SetEngagementMinDist( 300, 100 )

Required arguments:

  1. <min dist> Min distance where the cover node weight begins to fall off.
  2. <min falloff dist> Min falloff distance where the cover node weight reaches 0. Must be <= min dist.


Optional arguments:

none


Notes:

none