Fandom

武装突袭 Wiki

BIS_fnc_crewCount

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Introduced with Arma 3 version 1.08
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.08

Description

Description:
Function that counts amount of seats, both for crew and cargo seats.

Syntax

Syntax:
param call BIS_fnc_crewCount;
Parameters:
String - Classname of vehicle.

Boolean - True if cargo seats should be included (see notes)
Return Value:
Number - Amount of seats in vehicle.

Examples

Example 1:
crewCount = ["B_Heli_Light_01_F",false] call BIS_fnc_crewCount; // Counts all available seats excluding cargo slots. Returns 6 (see notes).

Example 2:
crewCount = ["B_Heli_Transport_01_F",true] call BIS_fnc_crewCount; // Counts all available seats including cargo slots. Returns 12.

Additional Information

Execution:
call
Multiplayer:
-
See also:

See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on October 1, 2014 - 20:12 (UTC)
Tryteyker-
This function goes through config values and as such is dependant on these. In some instances, this can lead to weird results; the user may, for example, expect the skids on the Littlebird to be cargo slots.
However, in reality, they are not and as such will be counted even if the boolean value is set to false.
If the bool value is set to true, it will return the total amount of seats available. To get the cargo seats only, running this function twice (once with false and once with true as bool values), and then subtracting the total with crew-only will yield the cargo (F^cargo = Ftotal - Fcrew) slots.
Crew slots include gunners and in some instances some cargo slots. The above may not work for every vehicle.

更多维基

随机维基