Page MenuHomeFeedback Tracker

Gunner position of static weapons does not return empty after gunner is killed [DEV BUILD]
New, WishlistPublic

Description

After the gunner of a static weapon is killed, a check of the weapon's empty gunner positions returns 0 as if the weapon is still occupied. This could potentially cause problems with some scripts, for example BIS_fnc_taskDefend which uses the emptyPositions command to check for static weapons for the AI to mount.

When the gunner is killed, the game should consider the weapon's gunner position to be empty.

Details

Legacy ID
3436434505
Severity
None
Resolution
Open
Reproducibility
Always
Category
Gameplay
Steps To Reproduce

This can be tested by placing this code in the init line of a manned static weapon:

0 = [this] spawn { _gun = _this select 0; while {true} do { _poslist = (_gun emptyPositions "gunner"); hint str _poslist; sleep 1;} };

This will continually display a hint showing the weapon's available gunner slots, which will initially be 0 because the weapon is manned. If you then kill the gunner, the hint will still show 0 as if a gunner is still manning the weapon. At this point, if you enter and then eject from the weapon, the position will be reset and the hint will display '1', meaning the weapon is now considered to be empty.

Event Timeline

JoeOBrien edited Additional Information. (Show Details)
JoeOBrien set Category to Gameplay.
JoeOBrien set Reproducibility to Always.
JoeOBrien set Severity to None.
JoeOBrien set Resolution to Open.
JoeOBrien set Legacy ID to 3436434505.May 7 2016, 4:49 PM
Bohemia added a subscriber: AD2001.Sep 20 2013, 1:07 AM