BIS fnc markerToString: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Map and Markers |GROUP1= | |gr1 = Map and Markers |GROUP1= | ||
| Converts existing marker to [[String]], for example: <tt><nowiki>"|marker_0|[3799.0110,2781.9880,0.0000]|mil_pickup|ICON|[1,1]|0|Solid|Default|1|You are here"</nowiki></tt> |Description= | | Converts existing marker to [[String]], for example: <tt><nowiki>"|marker_0|[3799.0110,2781.9880,0.0000]|mil_pickup|ICON|[1,1]|0|Solid|Default|1|You are here"</nowiki></tt> |Description= | ||
| markerName call [[BIS_fnc_markerToString]] |Syntax1= | | markerName call [[BIS_fnc_markerToString]] |Syntax1= | ||
Line 17: | Line 14: | ||
| [[String]] - serialized marker to be used with [[BIS_fnc_stringToMarker]] or [[BIS_fnc_stringToMarkerLocal]] |Returnvalue1= | | [[String]] - serialized marker to be used with [[BIS_fnc_stringToMarker]] or [[BIS_fnc_stringToMarkerLocal]] |Returnvalue1= | ||
|s2= [markerName, delimiter] call [[BIS_fnc_markerToString]] |Syntax2= | |s2= [markerName, delimiter] call [[BIS_fnc_markerToString]] |Syntax2= | ||
Line 26: | Line 22: | ||
| r2= [[String]] - serialized marker to be used with [[BIS_fnc_stringToMarker]] or [[BIS_fnc_stringToMarkerLocal]] |Returnvalue2= | | r2= [[String]] - serialized marker to be used with [[BIS_fnc_stringToMarker]] or [[BIS_fnc_stringToMarkerLocal]] |Returnvalue2= | ||
|x1= <code>"marker1" [[call]] [[BIS_fnc_markerToString]]</code> |Example1= | |x1= <code>"marker1" [[call]] [[BIS_fnc_markerToString]]</code> |Example1= | ||
|x2= <code>["marker1", ":"] [[call]] [[BIS_fnc_markerToString]]</code> |Example2= | |x2= <code>["marker1", ":"] [[call]] [[BIS_fnc_markerToString]]</code> |Example2= | ||
| [[BIS_fnc_stringToMarker]], [[BIS_fnc_stringToMarkerLocal]], [[BIS_fnc_markerToTrigger]], [[createMarker]], [[createMarkerLocal]] |See also= | | [[BIS_fnc_stringToMarker]], [[BIS_fnc_stringToMarkerLocal]], [[BIS_fnc_markerToTrigger]], [[createMarker]], [[createMarkerLocal]] |See also= |
Revision as of 23:26, 16 January 2021
Description
- Description:
- Converts existing marker to String, for example: "|marker_0|[3799.0110,2781.9880,0.0000]|mil_pickup|ICON|[1,1]|0|Solid|Default|1|You are here"
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- markerName call BIS_fnc_markerToString
- Parameters:
- markerName: String - existing marker
- Return Value:
- String - serialized marker to be used with BIS_fnc_stringToMarker or BIS_fnc_stringToMarkerLocal
Alternative Syntax
- Syntax:
- [markerName, delimiter] call BIS_fnc_markerToString
- Parameters:
- markerName: String - existing marker
- delimiter (Optional): String - a single data delimiter character. Default: "|"
- Return Value:
- String - serialized marker to be used with BIS_fnc_stringToMarker or BIS_fnc_stringToMarkerLocal
Examples
- Example 1:
"marker1" call BIS_fnc_markerToString
- Example 2:
["marker1", ":"] call BIS_fnc_markerToString
Additional Information
- See also:
- BIS_fnc_stringToMarkerBIS_fnc_stringToMarkerLocalBIS_fnc_markerToTriggercreateMarkercreateMarkerLocal
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 May 3, 2019 - 12:17 (UTC)
- 7erra
-
The format is the following:
"|MARKERNAME|markerPos|markerType|markerShape|markerSize|markerDir|markerBrush|markerColor|markerAlpha|markerText"
The delimiter for BIS_fnc_stringToMarker is the first character of the string