Page MenuHomeFeedback Tracker

M-900 unable to setHit engines
Closed, ResolvedPublic

Description

setHit command on any of the 4 engines listed in the HitPoints config fails to damage engine at all, where the same scripting properly damages every other helicopter in the game (+DLC); only M-900 is affected.

tail_rotor_hit also appears to be broken for setHit.

Details

Legacy ID
1289079519
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Helicopters DLC
Steps To Reproduce

This is the scripting i use successfully on all helicopters, -except- the M-900:

_configEngineName = getText (configfile >> "CfgVehicles" >> typeOf _veh >> "HitPoints" >> "HitEngine" >> "name");
_configEngine1Name = getText (configfile >> "CfgVehicles" >> typeOf _veh >> "HitPoints" >> "HitEngine1" >> "name");
_configEngine2Name = getText (configfile >> "CfgVehicles" >> typeOf _veh >> "HitPoints" >> "HitEngine2" >> "name");
_configEngine3Name = getText (configfile >> "CfgVehicles" >> typeOf _veh >> "HitPoints" >> "HitEngine3" >> "name");

//the config names returned: 'engine_hit', 'engine_1_hit', etc...

_veh setHit [_configEngineName,1];
_veh setHit [_configEngine1Name,1];
_veh setHit [_configEngine2Name,1];
_veh setHit [_configEngine3Name,1];

Additional Information

while on the subject, why do some single or twin engine heli's have 4 engines listed? each heli seems to have a different combination of engines that need to be hit for the engine to actually get damaged...

Event Timeline

cancerouspete edited Additional Information. (Show Details)
cancerouspete set Category to Helicopters DLC.
cancerouspete set Reproducibility to Always.
cancerouspete set Severity to None.
cancerouspete set Resolution to Fixed.
cancerouspete set Legacy ID to 1289079519.May 7 2016, 7:50 PM
shukari added a subscriber: shukari.May 7 2016, 7:50 PM

push... nothing happen

heli setHitPointDamage ["HitEngine", 1];

and

heli setHit ["engine_hit", 1];

or

heli setHit [getText (configfile >> "CfgVehicles" >> typeOf heli >> "HitPoints" >> "HitEngine" >> "name"), 1];

all work for me. hitengine1,2,... don't work. Latest DEV M-900 in editor, default flying model.

Sweet timing - you all rock! Thanks for testing it out KK...i wasn't even aware of setHitPointDamage command yet :)

Dev Changelog Today:
"Fixed: M-900 had a wrong set of hit points"

This ticket can be marked FIXED.