setSimpleTaskType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- setSimpleTaskType -->
{{RV|type=command
{{Command|=
____________________________________________________________________________________________


| A3 |= Game
|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]] |= Parameter 1
|p2= taskType: [[String]] - type of task


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


| Nothing |= Return Value
|x1= <sqf>(currentTask player) setSimpleTaskType "attack";</sqf>
 
____________________________________________________________________________________________
 
|x1= <code>([[currentTask]] [[player]]) [[setSimpleTaskType]] "attack";</code> |= Example 1
____________________________________________________________________________________________
 
| [[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 16: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