BIS fnc addCuratorAreaFromTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *L([a-z ])" to "$1 - l$2")
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Curator


|1.00|= Game version
|descr= Add curator editing / camera area based on triggers.
____________________________________________________________________________________________


| <pre>/*
|s1= [curatorLogic, triggers, checkedPosition, triggerType, editingArea, cameraArea] call [[BIS_fnc_addCuratorAreaFromTrigger]]


Description:
|p1= curatorLogic: [[Logic]] - curator logic
Add curator editing / camera area based on triggers


Parameter(s):
|p2= triggers: [[Array]] - list of triggers
0: OBJECT - curator logic
1: ARRAY - list of triggers
2: checked position (for supported data types, see BIS_fnc_position)
3: BOOL - true to use a trigger nearest to the position, false to use all triggers which the position is in
4: BOOL - true to add editing area
4: BOOL - true to add camera area


Returns:
|p3= checkedPosition: [[Anything]] - checked position. Check [[BIS_fnc_position]] for supported data types
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p4= triggerType: [[Boolean]] - [[true]] to use a trigger nearest to the ''checkedPosition'', [[false]] to use all triggers which the position is in
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_addCuratorAreaFromTrigger]]; --> |= Syntax
|p5= editingArea: [[Boolean]] - [[true]] to add editing area


|p1= |= Parameter 1
|p6= cameraArea: [[Boolean]] - [[true]] to add camera area


| |= Return value
|r1= [[Boolean]]
____________________________________________________________________________________________


|x1= <code></code> |=
|x1= <sqf>[BIS_curator, [trigger_1,trigger_2], [0,0,0], true, true, true] call BIS_fnc_addCuratorAreaFromTrigger;</sqf>
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Arma 3: Curator]]
}}
}}
<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: Curator|{{uc:addCuratorAreaFromTrigger}}]]
[[Category:Functions|{{uc:addCuratorAreaFromTrigger}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:addCuratorAreaFromTrigger}}]]

Latest revision as of 15:38, 8 November 2023

Hover & click on the images for description

Description

Description:
Add curator editing / camera area based on triggers.
Execution:
call
Groups:
Curator

Syntax

Syntax:
[curatorLogic, triggers, checkedPosition, triggerType, editingArea, cameraArea] call BIS_fnc_addCuratorAreaFromTrigger
Parameters:
curatorLogic: Logic - curator logic
triggers: Array - list of triggers
checkedPosition: Anything - checked position. Check BIS_fnc_position for supported data types
triggerType: Boolean - true to use a trigger nearest to the checkedPosition, false to use all triggers which the position is in
editingArea: Boolean - true to add editing area
cameraArea: Boolean - true to add camera area
Return Value:
Boolean

Examples

Example 1:
[BIS_curator, [trigger_1,trigger_2], [0,0,0], true, true, true] call BIS_fnc_addCuratorAreaFromTrigger;

Additional Information

See also:
Arma 3: Curator

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