Call of Duty 4: Scripting Reference - Player::ViewKick

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


ViewKick( <force>, <source> )

Module: Player

Summary:

Damage the player, and throw the screen around


Call this on: <player>

Example:

level.player ViewKick( 127, level.player.origin );

Required arguments:

  1. <force> The force of the kick, from 0 to 127
  2. <source> (a point) the source of the kick


Optional arguments:

none


Notes:

none