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

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


Target_SetShader( <target entity>, <materialname> )

Module: Objective
SP Only

Summary:

Changes the material of a target. The target must have already been created with target_set()


Call this on:

Example:

Target_SetShader( enemy_chopper, "locked_on_shader" );

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