BIS fnc missionSelector: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {3,}\|" to " |") |
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | arma3 |
Revision as of 11:08, 23 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Systems
Syntax
- Syntax:
- Syntax needed
- 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 []) 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:
- Return value needed
Examples
- Example 1:
private _area = [750, 400]; private _missionsList = [ [ 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" } ] ]; private _index = [_area, getMarkerPos "BIS_cameraCenter", _missionsList] call BIS_fnc_missionSelector; private _missionDetails = _missionsList select _index;
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