BIS fnc missionSelector: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Function|= Comments | arma3 |Game name= |1.78|Game version= <!---|arg= local |Multiplayer Arguments=---> <!---|eff= local |Multiplayer Effects=---> | <pre>/* Author: R...") |
m (infobox to template) |
||
Line 49: | Line 49: | ||
]; | ]; | ||
_selectedMissionIndex = [getMarkerPos "BIS_cameraCenter", _listOfMissions] call BIS_fnc_missionSelector; | _selectedMissionIndex = [getMarkerPos "BIS_cameraCenter", _listOfMissions] call BIS_fnc_missionSelector; | ||
*/</pre>{{ | */</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description= | ||
|[] call [[BIS_fnc_missionSelector]]|Syntax= | |[] call [[BIS_fnc_missionSelector]]|Syntax= |
Revision as of 15:27, 2 April 2019
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