setSimpleTaskType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game Version= (number surrounded by NO SPACES)" to "|Game Version (number surrounded by NO SPACES)=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- setSimpleTaskType -->
{{RV|type=command
{{Command|Comments=
____________________________________________________________________________________________


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


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


____________________________________________________________________________________________
|descr= Attach type to the simple task. See [[Arma_3_Tasks_Overhaul#Default_Task_Types:_Actions|Default Task Types]].


| Attach type to the simple task. See [[Arma_3_Tasks_Overhaul#Default_Task_Types:_Actions|Default Task Types]]. |DESCRIPTION=
|s1= task [[setSimpleTaskType]] taskType
____________________________________________________________________________________________


| task '''setSimpleTaskType''' taskType |SYNTAX=
|p1= task: [[Task]]


|p1= task: [[Task]] |PARAMETER1=
|p2= taskType: [[String]] - type of task


|p2= taskType: [[String]] - Type of task |PARAMETER2=
|r1= [[Nothing]]


| Nothing |RETURNVALUE=
|x1= <sqf>(currentTask player) setSimpleTaskType "attack";</sqf>
 
____________________________________________________________________________________________
 
|x1= <code>([[currentTask]] [[player]]) [[setSimpleTaskType]] "attack";</code> |EXAMPLE1=
____________________________________________________________________________________________
 
| [[taskType]], [[currentTask]], [[setSimpleTaskCustomData]], [[taskCustomData]], [[Arma_3_Tasks_Overhaul#Default_Task_Types:_Actions|Default Task Types]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________


|seealso= [[taskType]] [[currentTask]] [[setSimpleTaskCustomData]] [[taskCustomData]] [[Arma_3_Tasks_Overhaul#Default_Task_Types:_Actions|Default Task Types]]
}}
}}
<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>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:51, 8 November 2023

Hover & click on the images for description

Description

Description:
Attach type to the simple task. See Default Task Types.
Groups:
Briefing

Syntax

Syntax:
task setSimpleTaskType taskType
Parameters:
task: Task
taskType: String - type of task
Return Value:
Nothing

Examples

Example 1:
(currentTask player) setSimpleTaskType "attack";

Additional Information

See also:
taskType currentTask setSimpleTaskCustomData taskCustomData Default Task Types

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