BIS fnc markerToTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3")
m (Text replacement - " |s1=[" to " |s1= [")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.00
|1.00


|gr1= Map and Markers
|gr1= Map and Markers
Line 9: Line 8:
|descr= Makes an existing or new marker cover a trigger area.
|descr= Makes an existing or new marker cover a trigger area.


|s1=[markerName, trigger'', localChange''] call [[BIS_fnc_markerToTrigger]]
|s1= [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
Line 17: Line 16:
|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)


|r1=[[String]] - marker name or "" if marker couldn't be moved or created or if provided ''markerName'' is ""
|r1= [[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= <sqf>private _createdMarker = ["marker1", myTrigger] call BIS_fnc_markerToTrigger;</sqf>


|seealso= [[createMarker]], [[createMarkerLocal]], [[BIS_fnc_triggerToMarker]]
|seealso= [[createMarker]] [[createMarkerLocal]] [[BIS_fnc_triggerToMarker]]
}}
}}

Latest revision as of 23:11, 12 July 2022

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:
private _createdMarker = ["marker1", myTrigger] call BIS_fnc_markerToTrigger;

Additional Information

See also:
createMarker createMarkerLocal BIS_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