BIS fnc EXP camp playerChecklist: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Campaign(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )G([a-z])" to "$1g$3")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


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


<!--|exec= server|=-->
|gr1= Campaign
 
<!--|arg= local-->
 
<!--|eff= local-->


|descr= Display a checklist of players that don't meet the given condition, thus preventing mission progress.
|descr= Display a checklist of players that don't meet the given condition, thus preventing mission progress.
Line 17: Line 12:
|s1= [conditionProceed, conditionPlayer, code] call [[BIS_fnc_EXP_camp_playerChecklist]]
|s1= [conditionProceed, conditionPlayer, code] call [[BIS_fnc_EXP_camp_playerChecklist]]


|p1= conditionProceed: [[Code]] - (Optional, default {true}) General condition that must be met to proceed. Will not list player names.
|p1= conditionProceed: [[Code]] - (Optional, default {true}) general condition that must be met to proceed. Will not list player names.
 
|p2= conditionPlayer: [[Code]] - (Optional, default {true}) Condition that must be met by each player. Use '''_player''' to reference the player unit.


|p3= code: [[Code]] - (Optional, default {}) Code to be executed when all players meet the defined condition.
|p2= conditionPlayer: [[Code]] - (Optional, default {true}) condition that must be met by each player. Use '''_player''' to reference the player unit.


|r1= [[Boolean]] - [[True]] if successful, [[false]] if not
|p3= code: [[Code]] - (Optional, default {}) code to be executed when all players meet the defined condition.


|x1= <code>[{[[count]] [[allPlayers]] == 4}] [[call]] [[BIS_fnc_EXP_camp_playerChecklist]];</code>
|r1= [[Boolean]] - [[true]] if successful, [[false]] if not


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


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

Latest revision as of 12:29, 8 November 2023

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