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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 01:23, 1 August 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=ViewKick( <force>, <source> ) |Module=Player |Available |Summary=Damage the player, and throw the screen around |Call_on=<player> |Example=<pr...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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