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

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


UpdatePlayerSightAccuracy()

Module: AI
SP Only

Summary:

Does traces to determine how much of the player is visible if the player is the actor's enemy. Then modifies the actor's accuracy based on the visibilty. Should be called before any shoot volley.


Call this on: <actor> An actor

Example:

self UpdatePlayerSightAccuracy();

Required arguments:

none


Optional arguments:

none


Notes:

none