mirror of
https://github.com/SnarkIndustries/A3XAI-Final.git
synced 2024-08-30 17:22:13 +00:00
Releasing previously unreleased version. Completely unsupported with no guarantee of functionality. Use at own risk.
11 lines
336 B
Plaintext
11 lines
336 B
Plaintext
#include "\A3XAI\globaldefines.hpp"
|
|
|
|
private ["_vehicle", "_gunnerCount"];
|
|
|
|
_vehicle = _this;
|
|
|
|
_gunnerCount = {!((_vehicle weaponsTurret _x) isEqualTo []) && {!((_vehicle magazinesTurret _x) isEqualTo [])}} count (allTurrets [_vehicle,false]);
|
|
|
|
diag_log format ["Debug: %1 has %2 gunners.",(typeOf _vehicle),_gunnerCount];
|
|
|
|
_gunnerCount |