Call of Duty 4: Scripting Reference - Objective::Objective Add

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


Objective_Add( <objective_number>, <state>, <text>, <position>, <iconshader> )

Module: Objective

Summary:

Adds a new objective


Call this on:

Example:

Objective_Add( objective_number, "active", objective_text, (closest.bomb.origin) );

Required arguments:

  1. <objective_number> The number of the objective to add
  2. <state> A string value representing the state of the objective. Valid states are "empty", "active", "invisible", "done", "current" and "failed"


Optional arguments:

  1. <text> The text to use for the objective. This should be a valid localized text reference
  2. <position> The position of the objective
  3. <iconshader> The objective icon to embed


Notes:

none