BIS fnc manageCuratorAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(30 intermediate revisions by 4 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= Set which vision modes curator can access.
____________________________________________________________________________________________


| <pre>/*
|s1= [curators,classes,condition,text] call [[BIS_fnc_manageCuratorAddons]]


Description:
|p1=curator: [[Object]] or [[Array]] of objects - curator(s)
Make addons available to curators when provided condition is true.


Parameter(s):
|p2=classes [[Array]] of [[String]]s - CfgPatches classes
0: OBJECT or ARRAY of OBJECTs - curator(s)
1: STRING or ARRAY of STRINGs - CfgPatches classes
2: CODE - unlock condition
3: STRING - notification text


Returns:
|p3=classes [[Code]] - unlock condition, must return [[true]]
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p4=classes [[String]] - notification text
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_manageCuratorAddons]]; --> |= Syntax
|r1= [[Boolean]]


|p1= |= Parameter 1
|x1= <sqf>[BIS_curator,["A3_Air_F_Heli"],{count allPlayers > 15},"Helicopters unlocked!"] call BIS_fnc_manageCuratorAddons;</sqf>
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= 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:manageCuratorAddons}}]]
[[Category:Functions|{{uc:manageCuratorAddons}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:manageCuratorAddons}}]]

Latest revision as of 15:39, 8 November 2023

Hover & click on the images for description

Description

Description:
Set which vision modes curator can access.
Execution:
call
Groups:
Curator

Syntax

Syntax:
[curators,classes,condition,text] call BIS_fnc_manageCuratorAddons
Parameters:
curator: Object or Array of objects - curator(s)
classes Array of Strings - CfgPatches classes
classes Code - unlock condition, must return true
classes String - notification text
Return Value:
Boolean

Examples

Example 1:
[BIS_curator,["A3_Air_F_Heli"],{count allPlayers > 15},"Helicopters unlocked!"] call BIS_fnc_manageCuratorAddons;

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