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

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


SetEngagementMaxDist( <max dist>, <max falloff dist> )

Module: AI
SP Only

Summary:

Sets the max engagement distances used when selecting cover nodes.


Call this on: <actor> An actor

Example:

self SetEngagementMaxDist( 600, 800 )

Required arguments:

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


Optional arguments:

none


Notes:

none