BIS fnc markerToTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also: counterpart function)
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=
____________________________________________________________________________________________


| Makes an existing or new marker cover a trigger area. |Description=
| Makes an existing or new marker cover a trigger area. |Description=
____________________________________________________________________________________________


| [markerName, trigger'', localChange''] call [[BIS_fnc_markerToTrigger]] |Syntax=
| [markerName, trigger'', localChange''] call [[BIS_fnc_markerToTrigger]] |Syntax=
Line 21: Line 18:


| [[String]] - marker name or "" if marker couldn't be moved or created or if provided ''markerName'' is "" |Return value=
| [[String]] - marker name or "" if marker couldn't be moved or created or if provided ''markerName'' is "" |Return value=
____________________________________________________________________________________________


|x1= <code>_createdMarker = ["marker1", myTrigger] [[call]] [[BIS_fnc_markerToTrigger]];</code> |Example 1=
|x1= <code>_createdMarker = ["marker1", myTrigger] [[call]] [[BIS_fnc_markerToTrigger]];</code> |Example 1=
____________________________________________________________________________________________


| [[createMarker]], [[createMarkerLocal]], [[BIS_fnc_triggerToMarker]] |See also=
| [[createMarker]], [[createMarkerLocal]], [[BIS_fnc_triggerToMarker]] |See also=

Revision as of 00:29, 17 January 2021

Hover & click on the images for description

Description

Description:
Makes an existing or new marker cover a trigger area.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[markerName, trigger, localChange] call BIS_fnc_markerToTrigger
Parameters:
markerName: String - marker name - if no marker uses the name, a marker will be created
trigger: Object - trigger that will be covered by the marker
localChange: Boolean (Optional, default false) are changes local (local marker creation and/or local marker changes)
Return Value:
String - marker name or "" if marker couldn't be moved or created or if provided markerName is ""

Examples

Example 1:
_createdMarker = ["marker1", myTrigger] call BIS_fnc_markerToTrigger;

Additional Information

See also:
createMarkercreateMarkerLocalBIS_fnc_triggerToMarker

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

Notes

Bottom Section