BIS fnc markerParams: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(45 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| tkoh |= | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
| | |gr1= Map and Markers | ||
| | |descr= Returns marker params in format compatible with [[BIS_fnc_markerCreate]]. | ||
| | |s1= varName call [[BIS_fnc_markerParams]] | ||
| | |p1= varName: [[String]] - variable name of the marker | ||
|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= < | |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"]; | |||
_nameArray params ["_marker"]; | |||
_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