setSimpleTaskTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)?\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (formatting)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |Game name=
|game1= arma2oa
|version1= 1.50


|gr1= Briefing |GROUP1=
|game2= tkoh
|version2= 1.00


|game3= arma3
|version3= 0.50


|gr1= Briefing


|1.55|Game version=
|descr= Attach a target to the simple task.<br>Overrides [[setSimpleTaskDestination]].
____________________________________________________________________________________________


| Attach a target to the simple task.<br>Overrides [[setSimpleTaskDestination]].
|s1= task [[setSimpleTaskTarget]] [target, precisePosition]
|DESCRIPTION=
____________________________________________________________________________________________


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


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


|p2 = target: [[Object]] |PARAMETER2=
|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)


|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=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>task setSimpleTaskTarget [targetVehicle, true];</sqf>


 
|seealso= [[briefing]] [[createSimpleTask]] [[setSimpleTaskDestination]]
|x1= <code>task setSimpleTaskTarget [targetVehicle, true];</code>|EXAMPLE1= 
____________________________________________________________________________________________
 
[[briefing]], [[createSimpleTask]], [[setSimpleTaskDestination]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Briefing|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:39, 20 April 2022

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:
briefing createSimpleTask setSimpleTaskDestination

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