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

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


Objective_Current( <objective_index>, <objective_index>, ... )

Module: Objective

Summary:

Set which objective(s) are currently being done. If none specified, there's no current objective. Current objectives that are not specified to still be current, are set to active.


Call this on:

Example:

Objective_Current( aHardpointObjectives[0].obj, aHardpointObjectives[1].obj, aHardpointObjectives[2].obj );

Required arguments:

  1. <objective_index> The ID of the objective to set current.


Optional arguments:

  1. <objective_index> Any number of additional IDs to set current.


Notes:

none