taskDestination: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 9: | Line 8: | ||
|1.00|Game version= | |1.00|Game version= | ||
| Returns the position of the task (as specified by destination parameter in config). |DESCRIPTION= | | Returns the position of the task (as specified by destination parameter in config). |DESCRIPTION= | ||
| '''taskDestination''' task |SYNTAX= | | '''taskDestination''' task |SYNTAX= | ||
Line 27: | Line 24: | ||
|x1= <code>[[if]] (![[isNull]] [[currentTask]] [[player]]) [[then]] {[[taskDestination]] [[currentTask]][[ player]]}; //return [[Position]] ([[Array]])</code>|EXAMPLE1= | |x1= <code>[[if]] (![[isNull]] [[currentTask]] [[player]]) [[then]] {[[taskDestination]] [[currentTask]][[ player]]}; //return [[Position]] ([[Array]])</code>|EXAMPLE1= | ||
| [[cancelSimpleTaskDestination]], [[setSimpleTaskDestination]] |SEEALSO= | | [[cancelSimpleTaskDestination]], [[setSimpleTaskDestination]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 03:59, 17 January 2021
Description
- Description:
- Returns the position of the task (as specified by destination parameter in config).
- Groups:
- Briefing
Syntax
- Syntax:
- taskDestination task
- Parameters:
- task: Task
- Return Value:
- Array (A3 1.28 Returns Nothing if identity is taskNull)
Examples
- Example 1:
if (!isNull currentTask player) then {taskDestination currentTaskplayer}; //return Position (Array)
Additional Information
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