BIS fnc manageCuratorAddons: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.16 | |1.16 | ||
|gr1 = Curator | |gr1 = Curator | ||
|Set which vision modes curator can access. | |Set which vision modes curator can access. | ||
| [curators,classes,condition,text] call [[BIS_fnc_manageCuratorAddons]] | | [curators,classes,condition,text] call [[BIS_fnc_manageCuratorAddons]] | ||
|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|strings]] - 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 | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>[BIS_curator,["A3_Air_F_Heli"],{[[count]] [[allPlayers]] > 15},"Helicopters unlocked!"] [[call]] [[BIS_fnc_manageCuratorAddons]];</code> | |x1= <code>[BIS_curator,["A3_Air_F_Heli"],{[[count]] [[allPlayers]] > 15},"Helicopters unlocked!"] [[call]] [[BIS_fnc_manageCuratorAddons]];</code> | ||
| [[Curator]] | | [[Curator]] | ||
}} | }} | ||
Revision as of 23:08, 17 January 2021
Description
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:
- 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