Page MenuHomeFeedback Tracker

sethitpointdamage ["",0]; only 'repair' the first hitpoint with same hitpoint name.
New, NormalPublic

Description

Slammer right light, commander turret, commander gun cannot "repaired" by sethitpointdamage, because there IDs are not unique.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Config
Steps To Reproduce

Slammer setdamage 0,5;
hint str getallhitpointdamage Slammer;
try to fix hitpoints named "","HitTurret","HitGun" by using sethitpointdamage command.

Additional Information

I prefer a CfgHitpoints config.

fe. Class "Hitcommandergun":
display name = "HMG Turret";
...

Event Timeline

CHIMERACyborg edited Additional Information. (Show Details)
Lex added a subscriber: Lex.Jul 30 2017, 12:08 PM

Is there no problem with Kuma and T-100?

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).