Bug #12481
currentMagazine/currentWeapon gunner is not working for turrets
| Status: | Assigned | Start: | 2010-07-29 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | 2010-10-01 | |
| Assigned to: | - | % Done: | 0% |
|
| Category: | Scripting | |||
| Target version: | - | |||
| Operating system: | Mainboard chipset: | |||
| Graphics card: | System RAM size: | |||
| Graphics card driver version: | GPU VRAM size: | |||
| Affected ArmA II version: | Please select... | Audio card: | Please specify! | |
| Maxmem parameter: | Not set | Size of OS swap file: | Please specify! | |
| Difficulty: | Not set | I am using some Mods: | No | |
| Reproduced by another DH user: | No | I am using: | ||
| CPU: | Please specify! | Reproducible for you: | No | |
| Votes: | 13 |
Description
Obs:
Currently, this syntax returns an empty string, and it is impossible to get with 100% certainty what weapon or magazine a secondary turret gunner is currently using.
1 _currentMagazine = currentMagazine ((vehicle player) turretUnit [0,1]); 2 _currentWeapon = currentWeapon ((vehicle player) turretUnit [0,1]);
Note:
As OA includes similar commands (currentMuzzle gunner, currentZeroing gunner) that work on any turret by targeting a specific gunner.
History
Updated by kju about 1 month ago
- Subject changed from New syntax: currentMagazine gunner & currentWeapon gunner to New syntax: currentMagazine gunner & currentWeapon gunner for turrets
- Status changed from New to Assigned
Updated by BigDawgKS about 1 month ago
Hmm, kju the "for turrets" part is redundant. Also, it's not just for turrets, it's universal (ex: works on infantry). But it's fine as I'm sure BIS gets the point: the syntax I'm looking for is that of the currentMuzzle & currentZeroing commands.
Anyway, both of these commands are needed for determining which magazine was used during a fired event (for vehicles with multiple turrets):
1 _vehicle = _this select 0;
2 _weapon = _this select 1;
3 _gunner = gunner _vehicle;
4 {if(currentWeapon _x == _weapon)then{_gunner = _x}} forEach (crew _vehicle);
5 _magazine = currentMagazine _gunner;
Currently, it's too difficult/impossible without this syntax.
Updated by kju about 1 month ago
- Tracker changed from Feature to Bug
- Subject changed from New syntax: currentMagazine gunner & currentWeapon gunner for turrets to currentMagazine gunner & currentWeapon gunner working for turrets
- Due date set to 2010-10-01
Let's do it this way.
Updated by kju about 1 month ago
- Subject changed from currentMagazine gunner & currentWeapon gunner working for turrets to currentMagazine/currentWeapon gunner is not working for turrets
Updated by BigDawgKS about 1 month ago
Heh, if you think so kju.
I can accept it as a bug if it means BIS will be more inclined to resolve it. :)
Indeed, there's no justification for not updating the syntax of these commands to be consistent with the new ones. So... please resolve this BIS ;)