taskDestination: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (example & return value)
m (template:command argument fix)
Line 12: Line 12:
| '''taskDestination''' task |= Syntax
| '''taskDestination''' task |= Syntax


|p1= task: [[Task]]  |= PARAMETER1
|p1= task: [[Task]]  |PARAMETER1=  


|p2= |= PARAMETER2
|p2= |PARAMETER2=  


|p3= |= PARAMETER3
|p3= |PARAMETER3=  


| [[Array]] (A3 1.28 Returns [[Nothing]] if identity is [[taskNull]]) |= RETURNVALUE
| [[Array]] (A3 1.28 Returns [[Nothing]] if identity is [[taskNull]]) |RETURNVALUE=  




|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 10:38, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns the position of the task (as specified by destination parameter in config).
Groups:
Uncategorised

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

See also:
cancelSimpleTaskDestinationsetSimpleTaskDestination

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

Notes

Bottom Section