taskType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "‎" to "")
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- taskType -->
{{RV|type=command
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.58


|1.58|Game Version (number surrounded by NO SPACES)=
|gr1= Briefing


|gr1= Briefing |GROUP1=
|descr= Returns the type of the given task. A new task returns "Default" for the type.


____________________________________________________________________________________________
|s1= [[taskType]] task


| Returns the type of the given task |DESCRIPTION=
|p1= task: [[Task]]
____________________________________________________________________________________________


| '''taskType''' task |SYNTAX=
|r1= [[String]]


|p1= task: [[Task]] |PARAMETER1=
|x1= <sqf>_type = taskType (currentTask player);</sqf>


| [[String]] |RETURNVALUE=
|seealso= [[setSimpleTaskType]] [[taskName]] [[currentTask]] [[setSimpleTaskCustomData]] [[taskCustomData]] [[Arma 3: Task Framework#Task Overhaul|Tasks Overhaul]]
 
____________________________________________________________________________________________
 
|x1= <code>_type = [[taskType]] ([[currentTask]] [[player]]);</code> |EXAMPLE1=
____________________________________________________________________________________________
 
| [[setSimpleTaskType]], [[currentTask]], [[setSimpleTaskCustomData]], [[taskCustomData]], [[Arma 3: Task Framework#Task Overhaul|Tasks Overhaul]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">[[User:User Name|]]</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}

Latest revision as of 12:54, 26 April 2023

Hover & click on the images for description

Description

Description:
Returns the type of the given task. A new task returns "Default" for the type.
Groups:
Briefing

Syntax

Syntax:
taskType task
Parameters:
task: Task
Return Value:
String

Examples

Example 1:
_type = taskType (currentTask player);

Additional Information

See also:
setSimpleTaskType taskName currentTask setSimpleTaskCustomData taskCustomData Tasks Overhaul

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