BIS fnc triggerToMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Map and Markers


|1.00|= Game version
|eff= local
____________________________________________________________________________________________


| <pre>/*
|descr= Makes an existing or new trigger cover a marker area.
File: triggerToMarker.sqf
Description:
Makes an existing or new trigger cover a marker area.
Parameter(s):
_this select 0: <object> trigger that will be used to cover the marker - objNull to create a new trigger
_this select 1: <string> marker
Returns:
Trigger (object). Returns objNull if the function failed.
How to use:
_trigger = [objNull, "marker1"] call BIS_fnc_triggerToMarker;
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|s1= [trigger, markerName] call [[BIS_fnc_triggerToMarker]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_triggerToMarker]]; --> |= Syntax
|p1= trigger: [[Object]] - trigger that will be used to cover the marker. [[objNull]] to create a new trigger


|p1= |= Parameter 1
|p2= markerName: [[String]]


| |= Return value
|r1= [[Object]] - the (created) trigger. [[objNull]] if marker is not rectangular or elliptical.
____________________________________________________________________________________________


|x1= <code></code> |=
|x1= <sqf>private _createdTrigger = [objNull, myAreaTrigger] call BIS_fnc_triggerToMarker;</sqf>
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_markerToTrigger]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Map|{{uc:triggerToMarker}}]]
[[Category:Functions|{{uc:triggerToMarker}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:triggerToMarker}}]]

Latest revision as of 17:00, 13 July 2022

Hover & click on the images for description

Description

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

Syntax

Syntax:
[trigger, markerName] call BIS_fnc_triggerToMarker
Parameters:
trigger: Object - trigger that will be used to cover the marker. objNull to create a new trigger
markerName: String
Return Value:
Object - the (created) trigger. objNull if marker is not rectangular or elliptical.

Examples

Example 1:
private _createdTrigger = [objNull, myAreaTrigger] call BIS_fnc_triggerToMarker;

Additional Information

See also:
BIS_fnc_markerToTrigger

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