BIS fnc helicopterType: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \|p1=([^ ]+) + \| *(\[\[Numb.+) * " to " |p1=$1 |r1=$2 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|1.00 | |version1= 1.00 | ||
|game2= arma3 | |game2= arma3 | ||
Line 9: | Line 9: | ||
|gr1= Helicopters | |gr1= Helicopters | ||
|Returns helicopter type. | |descr= Returns helicopter type. | ||
|s1=[object] call [[BIS_fnc_helicopterType]] | |s1= [object] call [[BIS_fnc_helicopterType]] | ||
|p1= start: [[Object]] - Helicopter to be checked. | |p1= start: [[Object]] - Helicopter to be checked. | ||
|r1=[[Number]] | |r1= [[Number]] - one of: | ||
* -1 - Unknown | |||
* 0 - Light | |||
* 1 - Medium | |||
* 2 - Heavy | |||
|x1= <code>[[private]] _helicopterType = [<nowiki/>[[vehicle]] [[player]]] [[call]] [[BIS_fnc_helicopterType]];</code> | |||
|seealso= [[typeOf]] | |||
}} | }} | ||
Revision as of 16:09, 13 June 2021
Description
- Description:
- Returns helicopter type.
- Execution:
- call
- Groups:
- Helicopters
Syntax
- Syntax:
- [object] call BIS_fnc_helicopterType
- Parameters:
- start: Object - Helicopter to be checked.
- Return Value:
- Number - one of:
- -1 - Unknown
- 0 - Light
- 1 - Medium
- 2 - Heavy
Examples
- Example 1:
private _helicopterType = [vehicle player] call BIS_fnc_helicopterType;
Additional Information
- See also:
- typeOf
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