BIS fnc EXP camp playerChecklist: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>")
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.62
|version1= 1.62


Line 21: Line 20:
|r1= [[Boolean]] - [[true]] if successful, [[false]] if not
|r1= [[Boolean]] - [[true]] if successful, [[false]] if not


|x1= <code>[{[[count]] [[allPlayers]] == 4}] [[call]] [[BIS_fnc_EXP_camp_playerChecklist]];</code>
|x1= <sqf>[{count allPlayers == 4}] call BIS_fnc_EXP_camp_playerChecklist;</sqf>
 
|exec= call


|seealso=
|seealso=
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:EXP_camp_playerChecklist}}]]

Revision as of 18:11, 13 July 2022

Hover & click on the images for description

Description

Description:
Display a checklist of players that don't meet the given condition, thus preventing mission progress.
Execution:
call
Multiplayer:
Should only be excuted on the server.
Groups:
Campaign

Syntax

Syntax:
[conditionProceed, conditionPlayer, code] call BIS_fnc_EXP_camp_playerChecklist
Parameters:
conditionProceed: Code - (Optional, default {true}) General condition that must be met to proceed. Will not list player names.
conditionPlayer: Code - (Optional, default {true}) Condition that must be met by each player. Use _player to reference the player unit.
code: Code - (Optional, default {}) Code to be executed when all players meet the defined condition.
Return Value:
Boolean - true if successful, false if not

Examples

Example 1:
[{count allPlayers == 4}] call BIS_fnc_EXP_camp_playerChecklist;

Additional Information

See also:
See also needed

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