BIS fnc markerToString: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<code>" to "<code style="display: block">")
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3dev |Game name=
|game1= arma3
|version1= 1.92


|1.93|Game version=
|gr1= Map and Markers
____________________________________________________________________________________________


| 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=
|descr= Converts existing marker to [[String]], for example: {{hl|<nowiki>"|marker_0|[3799.0110,2781.9880,0.0000]|mil_pickup|ICON|[1,1]|0|Solid|Default|1|You are here"</nowiki>}}
____________________________________________________________________________________________


| markerName call [[BIS_fnc_markerToString]] |Syntax1=
|s1= [markerName, delimiter] call [[BIS_fnc_markerToString]]


|p1= markerName: [[String]] - existing marker |Parameter1=
|p1= markerName: [[String]] - existing marker


| [[String]] - serialized marker to be used with [[BIS_fnc_stringToMarker]] or [[BIS_fnc_stringToMarkerLocal]]  |Returnvalue1=
|p2= delimiter: [[String]] - (Optional, default {{hl|{{!}}}}) a single data delimiter character
____________________________________________________________________________________________


|s2= [markerName, delimiter] call [[BIS_fnc_markerToString]] |Syntax2=
|r1= [[String]] - serialized marker to be used with [[BIS_fnc_stringToMarker]] or [[BIS_fnc_stringToMarkerLocal]]


|p21= markerName: [[String]] - existing marker |Parameter21=
|x1= <sqf>"marker1" call BIS_fnc_markerToString;</sqf>


|p22= delimiter (Optional): [[String]] - a single data delimiter character. Default: "<nowiki>|</nowiki>" |Parameter22=
|x2= <sqf>["marker1", ":"] call BIS_fnc_markerToString;</sqf>


| r2= [[String]] - serialized marker to be used with [[BIS_fnc_stringToMarker]] or [[BIS_fnc_stringToMarkerLocal]] |Returnvalue2=
|seealso= [[BIS_fnc_stringToMarker]] [[BIS_fnc_stringToMarkerLocal]] [[BIS_fnc_markerToTrigger]] [[createMarker]] [[createMarkerLocal]]
____________________________________________________________________________________________
}}
 
 
|x1= <code>"marker1" [[call]] [[BIS_fnc_markerToString]]</code> |Example1=
|x2= <code>["marker1", ":"] [[call]] [[BIS_fnc_markerToString]]</code> |Example2=
____________________________________________________________________________________________


| [[BIS_fnc_stringToMarker]], [[BIS_fnc_stringToMarkerLocal]], [[BIS_fnc_markerToTrigger]], [[createMarker]], [[createMarkerLocal]] |See also=
{{Note
|user= 7erra
|timestamp= 20190503121700
|text= The format is the following: <br>
<code style="display: block">"<nowiki>|</nowiki>MARKERNAME<nowiki>|</nowiki>[[markerPos]]<nowiki>|</nowiki>[[markerType]]<nowiki>|</nowiki>[[markerShape]]<nowiki>|</nowiki>[[markerSize]]<nowiki>|</nowiki>[[markerDir]]<nowiki>|</nowiki>[[markerBrush]]<nowiki>|</nowiki>[[markerColor]]<nowiki>|</nowiki>[[markerAlpha]]<nowiki>|</nowiki>[[markerText]]"</code>
The delimiter for [[BIS_fnc_stringToMarker]] is the first character of the string.
}}
}}
[[Category:Functions|{{uc:markerToString}}]]
[[Category:Function Group: Map|{{uc:markerToString}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:markerToString}}]]

Latest revision as of 12:52, 11 January 2023

Hover & click on the images for description

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, delimiter] call BIS_fnc_markerToString
Parameters:
markerName: String - existing marker
delimiter: String - (Optional, default |) a single data delimiter character
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_stringToMarker BIS_fnc_stringToMarkerLocal BIS_fnc_markerToTrigger createMarker createMarkerLocal

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
7erra - c
Posted on May 03, 2019 - 12:17 (UTC)
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.