BIS fnc moduleRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "^ {{Function\|Comments\=" to "{{Function|Comments=")
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Modules
____________________________________________________________________________________________


| ''N/A''<br>{{placeholder}} |DESCRIPTION=
|descr= Used by the Set Rank module.
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_moduleRank]]; --> |SYNTAX=
|s1= [logic, units, activated] call [[BIS_fnc_moduleRank]]


|p1= |PARAMETER1=
|p1= logic: [[Object]] - logic


| |RETURNVALUE=
|p2= units: [[Array]] - units to set rank to
____________________________________________________________________________________________


|x1= <code></code> |EXAMPLE1=
|p3= activated: [[Boolean]] - (Optional, default [[true]]) if [[false]] nothing will happen
____________________________________________________________________________________________


| |SEEALSO=
|r1= [[Boolean]] - always [[true]]


|x1= <sqf>[rankLogic, [player]] call BIS_fnc_moduleRank;</sqf>
|seealso= [[Modules]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: ObjectModifiers|{{uc:moduleRank}}]]
[[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