BIS fnc manageCuratorAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
|p1=curator: [[Object]] or [[Array]] of objects - curator(s)
|p1=curator: [[Object]] or [[Array]] of objects - curator(s)


|p2=classes [[Array]] of [[String|strings]] - CfgPatches classes
|p2=classes [[Array]] of [[String]]s - CfgPatches classes


|p3=classes [[Code]] - Unlock condition, must return [[true]]
|p3=classes [[Code]] - unlock condition, must return [[true]]


|p4=classes [[String]] - Notification text
|p4=classes [[String]] - notification text


|r1= [[Boolean]]
|r1= [[Boolean]]

Latest revision as of 16: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