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

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


SetPotentialThreat( <dir> )

Module: AI
SP Only

Summary:

Set the potential threat direction. Potential threat direction is used in evaluating cover nodes.


Call this on: <entity>

Example:

self SetPotentialThreat( 90 );

Required arguments:

  1. <dir> direction of the threat. This is the angle from which the NPC should expect danger


Optional arguments:

none


Notes:

none