BIS fnc markerParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| tkoh |Game name=
|game1= tkoh
|version1= 1.00


|1.00|= Game version
|game2= arma3
|version2= 0.50


|gr1 = Map and Markers |GROUP1=
|gr1= Map and Markers
____________________________________________________________________________________________


| Returns marker params in format compatible with [[BIS_fnc_markerCreate]]. |DESCRIPTION=
|descr= Returns marker params in format compatible with [[BIS_fnc_markerCreate]].
____________________________________________________________________________________________


| varName call '''BIS_fnc_markerParams''' |SYNTAX=
|s1= varName call [[BIS_fnc_markerParams]]


|p1= varName: [[String]] - Variable name of the marker |PARAMETER1=
|p1= varName: [[String]] - variable name of the marker


| [[Array]] - Marker parameters
|r1= [[Array]] - marker parameters in format [varName, pos, size, colour, type, brush, shape, alpha, name] where:
*0: [[Array]] with [[String]] - Variable name of the marker
* varName: [[Array]] with [[String]] - variable name
*1: [[Array]] - Position of the marker
* pos: [[Array]] format [[Position]] - position (see [[setMarkerPos]])
*2: [[Array]] - Size
* size: [[Array]] of [[Number]]s in format [x, y] (see [[setMarkerSize]])
*3: [[String]] - Colour
* colour: [[String]] - colour (see [[setMarkerColor]])
*4: [[String]] - Type
* type: [[String]] - type (see [[setMarkerType]])
*5: [[String]] - Brush
* brush: [[String]] - brush (see [[setMarkerBrush]])
*6: [[String]] - Shape
* shape: [[String]] - shape (see [[setMarkerShape]])
*7: [[Number]] - Alpha
* alpha: [[Number]] - transparency (see [[setMarkerAlpha]])
*8: [[String]] - Name of the marker|RETURNVALUE=
* text: [[String]] - text (see [[setMarkerText]])


____________________________________________________________________________________________
|x1= <sqf>private _params = "marker_1" call BIS_fnc_markerParams;</sqf>


|x1= <code>_params = "marker_1" [[call]] '''BIS_fnc_markerParams''';</code>|EXAMPLE1=
|x2= <sqf>
____________________________________________________________________________________________
("marker_1" call BIS_fnc_markerParams) params ["_nameArray", "_position", "_size", "_colour", "_type", "_brush", "_shape", "_alpha", "_text"];
_position params ["_posX", "_posY"];
_nameArray params ["_marker"];
_size params ["_a", "_b"];
</sqf>


| [[BIS_fnc_markerCreate]] |SEEALSO=
|seealso= [[BIS_fnc_markerCreate]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Map|{{uc:markerParams}}]]
[[Category:Functions|{{uc:markerParams}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:markerParams}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:markerParams}}]]

Latest revision as of 01:53, 4 April 2024

Hover & click on the images for description

Description

Description:
Returns marker params in format compatible with BIS_fnc_markerCreate.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
varName call BIS_fnc_markerParams
Parameters:
varName: String - variable name of the marker
Return Value:
Array - marker parameters in format [varName, pos, size, colour, type, brush, shape, alpha, name] where:

Examples

Example 1:
private _params = "marker_1" call BIS_fnc_markerParams;
Example 2:
("marker_1" call BIS_fnc_markerParams) params ["_nameArray", "_position", "_size", "_colour", "_type", "_brush", "_shape", "_alpha", "_text"]; _position params ["_posX", "_posY"]; _nameArray params ["_marker"]; _size params ["_a", "_b"];

Additional Information

See also:
BIS_fnc_markerCreate

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