From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Function that draws clickable, hoverable and animated icons on the map that execute a user-defined code when pressed.
- Execution:
- call
- Groups:
- Systems
Syntax
- Syntax:
- [area, mapCenter, missionsArray] call BIS_fnc_missionSelector
- Parameters:
- area: Array of Number - (Optional, default [100,100]) used to determine map's zoom, format [width, height]
- mapCenter: Position2D - (Optional, default [0,0]) center position where the map camera will be positioned
- missionsArray: Array - (Optional, default c[]) list of selectable missions and their parameters, to format [pos, text, tooltip, picture, code]:
- pos: Array - where the clickable marker will be placed
- text: String - text that should be displayed next to the icon
- tooltip: String - text to be displayed in the tooltip (on mouse over)
- picture: String - location of the picture to be displayed in the tooltip
- code: Code - code spawned when the icon is clicked
- Return Value:
- Number - index of the chosen mission
Examples
- Example 1:
Additional Information
- See also:
- playMission
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