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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 00:09, 31 July 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=SetPotentialThreat( <dir> ) |Module=AI |Available=SP Only |Summary=Set the potential threat direction. Potential threat direction is used in evaluating co...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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