BIS fnc markerParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
Line 26: Line 26:
*8: [[String]] - Name of the marker
*8: [[String]] - Name of the marker


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


|seealso= [[BIS_fnc_markerCreate]]
|seealso= [[BIS_fnc_markerCreate]]
Line 39: Line 39:
<dd class="note">
<dd class="note">
Extract all marker information from marker_1 to variables:
Extract all marker information from marker_1 to variables:
<code>("marker_1" call BIS_fnc_markerParams) params ["_nameArray", "_position", "_size", "_colour", "_type", "_brush", "_shape", "_alpha", "_text"];
<sqf>("marker_1" call BIS_fnc_markerParams) params ["_nameArray", "_position", "_size", "_colour", "_type", "_brush", "_shape", "_alpha", "_text"];
_position params ["_posX", "_posY"];
_position params ["_posX", "_posY"];
_nameArray params ["_marker"];
_nameArray params ["_marker"];
_size params ["_a", "_b"];</code>
_size params ["_a", "_b"];</sqf>
</dd>
</dd>


</dl>
</dl>

Revision as of 23:44, 12 July 2022

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

Examples

Example 1:
private _params = "marker_1" call BIS_fnc_markerParams;

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

||

Posted on February 27, 2021 - 16:30 (UTC)
7erra
Extract all marker information from marker_1 to variables:
("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"];