BIS_fnc_missionSelector

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.78
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.78

Description

Description:
/*
	Author: Riccardo Argiolas

	Description:
	Function that draws clickable, hoverable and animated icons on the map that execute a user-defined code when pressed.

	Parameters:
	Select 0 - ARRAY: center position of where the camera will be positioned.
	Select 1 - ARRAY: list of selectable missions and their parameters.
		Select X - Array element
			Select 0 - ARRAY: where the clickable marker will be placed.
			Select 1 - STRING: text that should be displayed next to the icon.
			Select 2 - STRING: text to be displayed in the tooltip (on mouse over).
			Select 3 - STRING: directory of the picture to be displayed in the tooltip.
			Select 4 - CODE: code spawned when the icon is clicked.


	Returns:
	NUMBER: chosen mission (index of the list of selectable missions)

	Examples:

	_listOfMissions = 
	[
		[
			getmarkerPos "BIS_briefMarkerINFANTRY",
			"Infantry",
			"Your mission is to do stuff",
			"AnimBriefing\intro_stage1a_CA.paa",
			{hint "infantry mission selected"}	
		], 
		[
			getmarkerPos "BIS_briefMarkerSPECIALFORCES",
			"Special Forces",
			"Your mission is to do stuff but in a more special way",
			"AnimBriefing\intro_stage1a_CA.paa",
			{hint "special forces mission selected"}	
		]
	];
	_selectedMissionIndex = [getMarkerPos "BIS_cameraCenter", _listOfMissions] call BIS_fnc_missionSelector;
*/
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)

Syntax

Syntax:
[] call BIS_fnc_missionSelector
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:
Example needed

Additional Information

Execution:
call
Multiplayer:
-
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