Fandom

武装突袭 Wiki

BIS_fnc_setTask

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Set a task parameters.
Create the task when it doesn't exist.

Syntax

Syntax:
[params, target, desc, (dest, state, priority, showNotification, isGlobal, type, shared)] call BIS_fnc_setTask;
Parameters:
params: String or Array - Task ID or array in the format [task ID, parent task ID]

target: Task owner(s)
Boolean - true to set task of all playable units
Object - set task of a specific object
Group - set tasks of all objects in the group
Side - set tasks of all objects of the given side
Array - collection of above types

desc: Array or String - Task description in the format ["description", "title", "marker"] or CfgTaskDescriptions class

dest (Optional): Task destination
Object
Array - either position in format [x,y,z], or [object,precision] as used by setSimpleTaskTarget command

state (Optional): Task state
String - can be one of following:
"CREATED"
"ASSIGNED"
"AUTOASSIGNED" ("ASSIGNED" when no task is assigned yet, otherwise "CREATED")
"SUCCEEDED"
"FAILED"
"CANCELED"
Boolean - true to set the task as current

priority (Optional): Number - priority. When a current task is completed, system select a next one with the larges priority >= 0

showNotification (Optional): Boolean - true to show notification (default), false to disable it

isGlobal (Optional): Boolean - true to set task globally (default), false to set it only locally

type (Optional): String - task type from CfgTaskTypes, if not defined, type "" is being used

shared (Optional): Boolean - false to disable shared objective counter (default), true to enable it
Return Value:
String - Task ID

Examples

Example 1:
Example needed

Additional Information

Execution:
call
Multiplayer:
-
See also:

BIS_fnc_taskCreateTask Framework Task Enhancements

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

更多维基

随机维基