BIS_fnc_missionSelector

From Bohemia Interactive Community
Revision as of 16:27, 2 April 2019 by Erentar (talk | contribs) (infobox to template)
Jump to navigation Jump to search
Hover & click on the images for description

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;
*/
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

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

Examples

Example 1:

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