BIS fnc setRank: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | arma 3 |= Game name | ||
|1.00|= Game version | |1.00|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Set rank of vehicle crew.|= Description | ||
____________________________________________________________________________________________ | |||
| [target, rank] call [[BIS_fnc_setRank]] |= Syntax | |||
____________________________________________________________________________________________ | |||
|p1= target: [[Object]] - The vehicle whose crew's rank should be adjusted|= Parameter 1 | |||
|p2= rank: [[String]] or [[Number]] - Rank name or rank ID, can be:<br> | |||
0 - "Private"<br> | |||
1 - "Corporal"<br> | |||
2 - "Sergeant"<br> | |||
3 - "Lieutenant"<br> | |||
4 - "Captain"<br> | |||
< | 5 - "Major"<br> | ||
6 - "Colonel"|= Parameter 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[Boolean]]|= 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
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
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