BIS fnc markerParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - ">Posted on February ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-02-$1") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
|s1= varName call [[BIS_fnc_markerParams]] | |s1= varName call [[BIS_fnc_markerParams]] | ||
|p1= varName: [[String]] - | |p1= varName: [[String]] - variable name of the marker | ||
|r1= [[Array]] - | |r1= [[Array]] - marker parameters in format [varName, pos, size, colour, type, brush, shape, alpha, name] where: | ||
* | * varName: [[Array]] with [[String]] - variable name | ||
* | * pos: [[Array]] format [[Position]] - position (see [[setMarkerPos]]) | ||
* | * size: [[Array]] of [[Number]]s in format [x, y] (see [[setMarkerSize]]) | ||
* | * colour: [[String]] - colour (see [[setMarkerColor]]) | ||
* | * type: [[String]] - type (see [[setMarkerType]]) | ||
* | * brush: [[String]] - brush (see [[setMarkerBrush]]) | ||
* | * shape: [[String]] - shape (see [[setMarkerShape]]) | ||
* | * alpha: [[Number]] - transparency (see [[setMarkerAlpha]]) | ||
* | * text: [[String]] - text (see [[setMarkerText]]) | ||
|x1= <sqf>private _params = "marker_1" call BIS_fnc_markerParams;</sqf> | |x1= <sqf>private _params = "marker_1" call BIS_fnc_markerParams;</sqf> | ||
| | |x2= <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"];</sqf | _size params ["_a", "_b"]; | ||
</sqf> | |||
|seealso= [[BIS_fnc_markerCreate]] | |||
}} |
Latest revision as of 01:53, 4 April 2024
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:
- varName: Array with String - variable name
- pos: Array format Position - position (see setMarkerPos)
- size: Array of Numbers in format [x, y] (see setMarkerSize)
- colour: String - colour (see setMarkerColor)
- type: String - type (see setMarkerType)
- brush: String - brush (see setMarkerBrush)
- shape: String - shape (see setMarkerShape)
- alpha: Number - transparency (see setMarkerAlpha)
- text: String - text (see setMarkerText)
Examples
- Example 1:
- Example 2:
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