Slammer right light, commander turret, commander gun cannot "repaired" by sethitpointdamage, because there IDs are not unique.
Description
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Config
Slammer setdamage 0,5;
hint str getallhitpointdamage Slammer;
try to fix hitpoints named "","HitTurret","HitGun" by using sethitpointdamage command.
I prefer a CfgHitpoints config.
fe. Class "Hitcommandergun":
display name = "HMG Turret";
...
Event Timeline
not tested, but i am 99% sure that the problem belongs to every vehicle whitch have two identic hitpointnames.
"HitTurret" for example, only the mainturret is affected, because its the first "HitTurret" in the hitpointarray.
further the 'damage' command does not corrospond with the 'sethitpointdamage' command.
If you execute this:
_vehicle setdamage 0.4;
{_vehicle setHitPointDamage [_x, 0] } foreach ((getAllHitPointsDamage _vehicle) select 0);
hint str damage _vehicle;
the hint says 0.4 but the vehicle is repaired (exept the unreachable doubble Hitpoints of course).