BIS fnc markerToTrigger: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Map and Markers | |gr1 = Map and Markers | ||
| Makes an existing or new marker cover a trigger area. | | Makes an existing or new marker cover a trigger area. | ||
| [markerName, trigger'', localChange''] call [[BIS_fnc_markerToTrigger]] | | [markerName, trigger'', localChange''] call [[BIS_fnc_markerToTrigger]] | ||
|p1= markerName: [[String]] - marker name - if no marker uses the name, a marker will be created | |p1= markerName: [[String]] - marker name - if no marker uses the name, a marker will be created | ||
|p2= trigger: [[Object]] - trigger that will be covered by the marker | |p2= trigger: [[Object]] - trigger that will be covered by the marker | ||
|p3= localChange: [[Boolean]] (Optional, default [[false]]) are changes local (local marker creation and/or local marker changes) | |p3= localChange: [[Boolean]] (Optional, default [[false]]) are changes local (local marker creation and/or local marker changes) | ||
| [[String]] - marker name or "" if marker couldn't be moved or created or if provided ''markerName'' is "" | | [[String]] - marker name or "" if marker couldn't be moved or created or if provided ''markerName'' is "" | ||
|x1= <code>_createdMarker = ["marker1", myTrigger] [[call]] [[BIS_fnc_markerToTrigger]];</code> | |x1= <code>_createdMarker = ["marker1", myTrigger] [[call]] [[BIS_fnc_markerToTrigger]];</code> | ||
| [[createMarker]], [[createMarkerLocal]], [[BIS_fnc_triggerToMarker]] | | [[createMarker]], [[createMarkerLocal]], [[BIS_fnc_triggerToMarker]] | ||
}} | }} | ||
Revision as of 23:08, 17 January 2021
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
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