setSimpleTaskType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- setSimpleTaskType -->
{{RV|type=command
{{Command


| arma3
|game1= arma3
 
|version1= 1.58
|1.58


|gr1= Briefing
|gr1= Briefing


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


| task '''setSimpleTaskType''' taskType
|s1= task [[setSimpleTaskType]] taskType


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


|p2= taskType: [[String]] - Type of task
|p2= taskType: [[String]] - type of task


| Nothing
|r1= [[Nothing]]


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


|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>
{{GameCategory|arma3|Scripting Commands}}

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