Page MenuHomeFeedback Tracker

setHit and setHitPointDamage doesn't work for Civilian SUVs
New, WishlistPublic

Description

when trying to apply setHit or setHitPointDamage to the civilian SUV or hatchback in the init or the command prompt in game it does not function at all.

Details

Legacy ID
4284012470
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

place hatchback or civilian SUV on map name the car "car1", add character, type "car1 setHitPointDamage["motor", 0.55]" in the init.... preview the game, no damage, type the same command in the in-game editor... same thing

Event Timeline

Dissaifer edited Additional Information. (Show Details)
Dissaifer set Category to Scripting.
Dissaifer set Reproducibility to Always.
Dissaifer set Severity to None.
Dissaifer set Resolution to Open.
Dissaifer set Legacy ID to 4284012470.May 7 2016, 7:14 PM
Bohemia added a subscriber: AD2001.Aug 17 2014, 3:46 PM

setHit takes selection, setHitPointDamage takes hitpoint,

so it is either setHit ["motor"... or setHitPointDamage ["hitEngine....

In fact for SUV it is

car setHit ["engine", 1]

or

car setHitPointDamage ["hitengine", 1]

Also make sure vehicle is local to the comp where command is executed

Use command getAllHitPointsDamage for Hitpoints and Selections.

For disable Engine for SUV u need execute obj setHit ["engine", 1];
As example: vehicle player setHit ["engine", 1];