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

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


SetFlashBanged( <flashed>, <strength> )

Module: AI
SP Only

Summary:

Sets whether an actor is under a flashbang effect.


Call this on: <actor> An actor

Example:

self SetFlashBanged( true, 0.8 )

Required arguments:

  1. <flashed> Whether or not the actor is under the affect of a flashbang.


Optional arguments:

  1. <strength> If actor is flashed, how severely they were initially affected. Between 0.0 and 1.0 (full strength).


Notes:

none