BIS fnc taskHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|s1= <!-- ([^ ]+) --> \}\}" to " |s1= <!-- $1 --> |r1= |x1= |seealso= }} ")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3")
Line 15: Line 15:
|gr1= Tasks
|gr1= Tasks


| <pre>
|descr= <pre>
/*******************************************************************************
/*******************************************************************************
  *
  *

Revision as of 21:53, 13 June 2021

Hover & click on the images for description

Description

Description:
/*******************************************************************************
 *
 *	version: 		1.0
 *	name:			Task handler
 *	description:	automatically sets tasks as current 	
 *	parameters:		_this select 0: a unit whose tasks will be handled (Array)
 					_this select 1: links to tasks created via MP Framwork with
 									priorities (loewr number means higher
 									priority)
 *	return value:	none 	
 * 	example:	 	[
 						BIS_cooper,
						[
							["objShaftoe",   		1],
							["objGorka",			3],
							["objNikolayev",		5],
							["objLagushina",   		5],
							["objSmugglers",   		5],
							["objFindBase",    		4],
							["objSentries",   		3],
							["objLeader",			3],
							["objDestroyBase",		3],
							["objEscortLagushina",	1],
							["objRescueCrew",   	2],
							["objSafehouse",    	3],
							["objMaksim",    		6],
							["objEvidence",    		7]
						]
					] call BIS_fnc_taskHandler

 *	TODO:			* generalize so it can be used in WF
 					* add support for standard tasks
 					* randomize the selection of tasks with the same priority
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
Tasks

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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