Call of Duty 4: Scripting Reference - Objective::Target SetOffscreenShader

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


Target_SetOffscreenShader( <target entity>, <materialname> )

Module: Objective
SP Only

Summary:

Sets the material that is used when a target clamps to the edge of the screen. The target must have already been created with target_set()


Call this on:

Example:

Target_SetOffscreenShader( enemy_chopper, "arrow" );

Required arguments:

  1. <target entity> The entity that is the target
  2. <materialname> The shader for the quad drawn over the target


Optional arguments:

none


Notes:

none