Difference between pages "DCS func setCode" and "DCS func setTask"

From DCS World Wiki - Hoggitworld.com
(Difference between pages)
m (1 revision imported)
 
m (1 revision imported)
 
Line 1: Line 1:
 
{{Template:dcs_funcs
 
{{Template:dcs_funcs
  
|fName= setCode
+
|fName= setTask
  
|vNum= 1.2.6
+
|vNum= 1.2.4
  
|par1= [[DCS_Class_Spot| Spot]]
+
|par1= [[DCS_Class_Controller|Controller]]
  
 
|par2=  
 
|par2=  
  
|par3=  
+
|desc= Sets the specified task to the units or groups associated with the controller object. Tasks must fit a specified format. For more information see the specific task page you are looking for:
  
|par4=
+
'''Main Tasks:''' {{listOfTasks}}
  
|desc= Sets the number that is used to define the laser code for which laser designation can track. Default and max value is 1688
+
'''Enroute Tasks:''' {{listOfEnrouteTasks}}
  
 
|rtnType= function
 
|rtnType= function
Line 21: Line 21:
 
|reqType1= Class
 
|reqType1= Class
  
|reqName1= Self
+
|reqName1= self
  
|reqType2= number
+
|reqType2= table
  
|reqName2= code
+
|reqName2= task
  
 
|reqType3=
 
|reqType3=
Line 33: Line 33:
 
|optType2=
 
|optType2=
  
|related=  
+
|related= [[DCS_Class_Controller|'''Controller:''']] {{listofScriptingControllerFuncs}}
[[DCS_Class_Spot|'''Spot Functions:''']] {{listofScriptingSpotFuncs}}
 
 
 
 
|examples=  
 
|examples=  
  
 
|notes=  
 
|notes=  
 
}}
 
}}
[[Category:Class Functions|setCode]]
+
 
 +
[[Category:Class Functions|setTask]]
 +
[[Category:Tasks|setTask]]

Revision as of 00:12, 12 April 2018

Scripting Root

Envrioment: Mission Scripting
Function: setTask Added with: 1.2.4
Member Of: Controller
Syntax: function Controller.setTask(Class self , table task )
Description: Sets the specified task to the units or groups associated with the controller object. Tasks must fit a specified format. For more information see the specific task page you are looking for:

Main Tasks: AttackGroup, AttackUnit, Bombing, Strafing, CarpetBombing, AttackMapObject, BombingRunway, orbit, refueling, land, follow, followBigFormation, escort, Embarking, fireAtPoint, hold, FAC_AttackGroup, EmbarkToTransport, DisembarkFromTransport, CargoTransportation, goToWaypoint, groundEscort, RecoveryTanker

Enroute Tasks: engageTargets, engageTargetsInZone, engageGroup, engageUnit, awacs, tanker, ewr, FAC_engageGroup, FAC


Return Value: function
Return Example: none
Examples:
Related Functions: Controller: setTask, resetTask, pushTask, popTask, hasTask, setCommand, setOption, setOnOff, setAltitude, setSpeed, knowTarget, isTargetDetected, getDetectedTargets
Notes: