SetTargetName Property

Usage:
   ObjectTemplate.SetTargetName name

Argument values:

argument 1:    Factory01, RadarTower01, RadarTower02, RadarTower03, RadarTower04, Turbine01, Turbine02, Turbine03, Turbine04

Description: Sets an objective named by Object.SetName to be the target of a team.

Related properties: ObjectiveName, SetNetworkableInfo, SetObjectiveDelay

Used in object types (always present 100% of the time): DestroyTargetObjective

Used in a total of 7 .con files: Objectivespawnertemplates.con

Parent directory of these .con files: Bf1942/Levels

Example: (from Bf1942/Levels/Essen/ObjectiveMode/ObjectiveSpawnerTemplates.con)
   rem ================ ObjectiveTemplates =====================
   rem // Axis = 1 , Allied = 2
   ObjectTemplate.Create DestroyTargetObjective DestroyTurbine01
   ObjectTemplate.SetNetworkableInfo ObjectiveInfo
   ObjectTemplate.SetTargetName Turbine01
   ObjectTemplate.ObjectiveName SILO_1
   ObjectTemplate.SetObjectiveDelay 1.0
   ObjectTemplate.SetTeam 2


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.