BIS fnc setRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (pf)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma 3 |= Game name


|1.00|= Game version
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Set rank of vehicle crew.|= Description
____________________________________________________________________________________________


Description:
| [target, rank] call [[BIS_fnc_setRank]] |= Syntax
Set rank of vehicle crew
____________________________________________________________________________________________


Parameter(s):
|p1= target: [[Object]] - The vehicle whose crew's rank should be adjusted|= Parameter 1
0: OBJECT
|p2= rank: [[String]] or [[Number]] - Rank name or rank ID, can be:<br>
1: STRING or NUMBER - rank or rank ID
0 - "Private"<br>
 
1 - "Corporal"<br>
Returns:
2 - "Sergeant"<br>
BOOL
3 - "Lieutenant"<br>
*/
4 - "Captain"<br>
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
5 - "Major"<br>
6 - "Colonel"|= Parameter 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_setRank]]; --> |= Syntax
| [[Boolean]]|= Return value
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[ [[vehicle]] [[player]], "Captain" ] [[call]] [[BIS_fnc_setRank]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[rank]], [[setRank]] |= See also
 
}}
}}



Revision as of 14:40, 1 June 2018

Hover & click on the images for description

Description

Description:
Set rank of vehicle crew.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[target, rank] call BIS_fnc_setRank
Parameters:
target: Object - The vehicle whose crew's rank should be adjusted
rank: String or Number - Rank name or rank ID, can be:
0 - "Private"
1 - "Corporal"
2 - "Sergeant"
3 - "Lieutenant"
4 - "Captain"
5 - "Major"
6 - "Colonel"
Return Value:
Boolean

Examples

Example 1:
[ vehicle player, "Captain" ] call BIS_fnc_setRank;

Additional Information

See also:
ranksetRank

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

Notes

Bottom Section