BIS fnc getMarkers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-gi-z ])" to "$1 - p$2")
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.78


|1.78|Game version=
|gr1= Map and Markers


<!---|arg= local |Multiplayer Arguments=--->
|descr= Returns markers in format PREFIX_N where PREFIX_ is the provided argument and N is an integer between 1 and 128. If there are 128 markers but marker 123 is missing, then only the first 122 marker will be returned.


<!---|eff= local |Multiplayer Effects=--->
|s1= [markerPrefix] call [[BIS_fnc_getMarkers]]


| <pre>/*
|p1= markerPrefix: [[String]] - prefix of the markers
Author: ZoZo


Description:
|r1= [[Array]] - an array of markers
    Gets markers by their prefix. Limit of markers is 128 (_MAX_MARKERS)


Parameters:
|x1= <sqf>["BIS_marker_"] call BIS_fnc_getMarkers; // ["BIS_marker_1","BIS_marker_2",...]</sqf>
Select 0 - STRING: Marker's prefix


Returns:
|seealso= [[BIS_fnc_cancelMarker]] [[BIS_fnc_blinkMarker]] [[BIS_fnc_rotateMarker]] [[BIS_fnc_resizeMarker]]
Array of markers
 
Example:
_xHandle = ["BIS_fia_arrow_"] call BIS_fnc_getMarkers;  //gets all markers with prefix BIS_fia_arrow_  (BIS_fia_arrow_1, BIS_fia_arrow_2, ..., BIS_fia_arrow_x)
 
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=
 
|[] call [[BIS_fnc_getMarkers]]|Syntax=
 
|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=
 
|exec= call |Execution=
 
| |See also=
}}
}}
[[Category:Function Group: Map|{{uc:getMarkers}}]]
[[Category:Functions|{{uc:getMarkers}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:getMarkers}}]]

Latest revision as of 15:45, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns markers in format PREFIX_N where PREFIX_ is the provided argument and N is an integer between 1 and 128. If there are 128 markers but marker 123 is missing, then only the first 122 marker will be returned.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[markerPrefix] call BIS_fnc_getMarkers
Parameters:
markerPrefix: String - prefix of the markers
Return Value:
Array - an array of markers

Examples

Example 1:
["BIS_marker_"] call BIS_fnc_getMarkers; // ["BIS_marker_1","BIS_marker_2",...]

Additional Information

See also:
BIS_fnc_cancelMarker BIS_fnc_blinkMarker BIS_fnc_rotateMarker BIS_fnc_resizeMarker

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