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

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


Objective_State( <objective_number>, <state> )

Module: Objective

Summary:

Sets the state of an objective


Call this on:

Example:

Objective_State( 8, "done" );

Required arguments:

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


Optional arguments:

none


Notes:

none