BIS fnc taskHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Some wiki formatting)
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma2
____________________________________________________________________________________________
|version1= 1.00


| arma2 |= Game name
|game2= arma2oa
|version2= 1.50


|1.00|= Game version
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| <pre>
|game4= arma3
|version4= 0.50
 
|gr1= Tasks
 
|descr= <pre>
/*******************************************************************************
/*******************************************************************************
  *
  *
Line 14: Line 21:
  * name: Task handler
  * name: Task handler
  * description: automatically sets tasks as current
  * description: automatically sets tasks as current
  * paramaters: _this select 0: a unit whose tasks will be handled (Array)
  * parameters: _this select 0: a unit whose tasks will be handled (Array)
  _this select 1: links to tasks created via MP Framwork with
  _this select 1: links to tasks created via MP Framwork with
  priorities (loewr number means higher
  priorities (loewr number means higher
Line 42: Line 49:
  * 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>
 
{{Wiki|placeholder}}
| <!-- [] call [[BIS_fnc_taskHandler]]; --> |= Syntax


|p1= |= Parameter 1
|s1= <!-- [] call [[BIS_fnc_taskHandler]]; -->


| |= Return value
|r1=
____________________________________________________________________________________________


|x1= <code></code> |=
|x1=
____________________________________________________________________________________________
 
| |= See also


|seealso=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:taskHandler}}]]
[[Category:Functions|{{uc:taskHandler}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:taskHandler}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:taskHandler}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:taskHandler}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:taskHandler}}]]

Latest revision as of 20:50, 20 March 2024

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