setSimpleTaskTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2oa |Game name=
| arma2oa


|gr1= Briefing |GROUP1=
|gr1= Briefing






|1.55|Game version=
|1.55


| Attach a target to the simple task.<br>Overrides [[setSimpleTaskDestination]].
| Attach a target to the simple task.<br>Overrides [[setSimpleTaskDestination]].
|DESCRIPTION=


| task '''setSimpleTaskTarget''' [target, precisePosition] |SYNTAX=


|p1 = task: [[Task]] |PARAMETER1=
| task '''setSimpleTaskTarget''' [target, precisePosition]


|p2 = target: [[Object]] |PARAMETER2=
|p1 = task: [[Task]]


|p3 = precisePosition: [[Boolean]] - use exact position of the target for map marker / HUD indicator instead of the position known to the owner of the task (depending on the knowledge about the target) |PARAMETER3=
|p2 = target: [[Object]]


| [[Nothing]] |RETURNVALUE=
|p3 = precisePosition: [[Boolean]] - use exact position of the target for map marker / HUD indicator instead of the position known to the owner of the task (depending on the knowledge about the target)


| [[Nothing]]


|x1= <code>task setSimpleTaskTarget [targetVehicle, true];</code>|EXAMPLE1= 


| [[briefing]], [[createSimpleTask]], [[setSimpleTaskDestination]] |SEEALSO=
|x1= <code>task setSimpleTaskTarget [targetVehicle, true];</code>


|  |MPBEHAVIOUR=
[[briefing]], [[createSimpleTask]], [[setSimpleTaskDestination]]
 
|
}}
}}



Revision as of 12:11, 18 January 2021

Hover & click on the images for description

Description

Description:
Attach a target to the simple task.
Overrides setSimpleTaskDestination.
Groups:
Briefing

Syntax

Syntax:
task setSimpleTaskTarget [target, precisePosition]
Parameters:
task: Task
target: Object
precisePosition: Boolean - use exact position of the target for map marker / HUD indicator instead of the position known to the owner of the task (depending on the knowledge about the target)
Return Value:
Nothing

Examples

Example 1:
task setSimpleTaskTarget [targetVehicle, true];

Additional Information

See also:
briefingcreateSimpleTasksetSimpleTaskDestination

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note