taskDestination: Difference between revisions
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]] |= | |p1= task: [[Task]] |PARAMETER1= | ||
|p2= |= | |p2= |PARAMETER2= | ||
|p3= |= | |p3= |PARAMETER3= | ||
| [[Array]] (A3 1.28 Returns [[Nothing]] if identity is [[taskNull]]) |= | | [[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>|= | |x1= <code>[[if]] (![[isNull]] [[currentTask]] [[player]]) [[then]] {[[taskDestination]] [[currentTask]][[ player]]}; //return [[Position]] ([[Array]])</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[cancelSimpleTaskDestination]], [[setSimpleTaskDestination]] |= | | [[cancelSimpleTaskDestination]], [[setSimpleTaskDestination]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:38, 7 April 2019
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
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