BIS fnc moduleRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "")
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


|game1= arma3
|game1= arma3
|version1= 1.00
|version1= 1.00


|gr1= Modules
|gr1= Modules
<!--|serverExec= server-->
<!--|arg= local-->
<!--|eff= local-->


|descr= Used by the Set Rank module.
|descr= Used by the Set Rank module.
Line 17: Line 10:
|s1= [logic, units, activated] call [[BIS_fnc_moduleRank]]
|s1= [logic, units, activated] call [[BIS_fnc_moduleRank]]


|p1= logic: [[Object]] - Logic
|p1= logic: [[Object]] - logic
 
|p2= units: [[Array]] - Units to set rank to


|p3= activated: [[Boolean]] - (Optional, default [[true]]) If [[false]] nothing will happen
|p2= units: [[Array]] - units to set rank to


|r1= [[Boolean]] - Always [[true]]
|p3= activated: [[Boolean]] - (Optional, default [[true]]) if [[false]] nothing will happen


|x1= <code>[logic,<nowiki>[</nowiki>[[player]]]] [[call]] [[BIS_fnc_moduleRank]];</code>
|r1= [[Boolean]] - always [[true]]


|exec= call
|x1= <sqf>[rankLogic, [player]] call BIS_fnc_moduleRank;</sqf>


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

Latest revision as of 12:40, 8 November 2023

Hover & click on the images for description

Description

Description:
Used by the Set Rank module.
Execution:
call
Groups:
Modules

Syntax

Syntax:
[logic, units, activated] call BIS_fnc_moduleRank
Parameters:
logic: Object - logic
units: Array - units to set rank to
activated: Boolean - (Optional, default true) if false nothing will happen
Return Value:
Boolean - always true

Examples

Example 1:
[rankLogic, [player]] call BIS_fnc_moduleRank;

Additional Information

See also:
Modules

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