Difference between revisions of "BIS fnc taskHandler"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (template:command argument fix)
(One intermediate revision by one other user not shown)
Line 42: Line 42:
 
  * add support for standard tasks
 
  * add support for standard tasks
 
  * randomize the selection of tasks with the same priority
 
  * randomize the selection of tasks with the same priority
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
+
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <!-- [] call [[BIS_fnc_taskHandler]]; --> |= Syntax
+
| <!-- [] call [[BIS_fnc_taskHandler]]; --> |SYNTAX=
  
|p1= |= Parameter 1
+
|p1= |PARAMETER1=
  
| |= Return value
+
| |RETURNVALUE=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 55: Line 55:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= See also
+
| |SEEALSO=
  
 
}}
 
}}

Revision as of 15:33, 7 April 2019

Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
/*******************************************************************************
 *
 *	version: 		1.0
 *	name:			Task handler
 *	description:	automatically sets tasks as current 	
 *	paramaters:		_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)
Example 1:
Example needed
See also:
See also needed

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