BIS fnc markerParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *V([a-z ])" to "$1 - v$2") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 15: | Line 15: | ||
|p1= varName: [[String]] - variable name of the marker | |p1= varName: [[String]] - variable name of the marker | ||
|r1= [[Array]] - marker parameters | |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