Jump to content
Sign in to follow this  
Volantarius

setHit and setHitPointDamage Issue?

Recommended Posts

Hello! I'm using setHit and/or setHitPointDamage to damage a unit. I've set any of the Unit's damage names to 50% or above for visual damage.

Testing in singleplayer, whenever I shoot a Unit their visual damage gets reset to the new location I've shot. In singleplayer locality isn't an issue.

 

Is this a bug? Is this intended?

Share this post


Link to post
Share on other sites

What is your script? First everything you need is it unless you don't need any advice in a forum.

Share this post


Link to post
Share on other sites
private _dude = _this select 0;

_dude setHitPointDamage ["HitNeck", 0.9];
_dude setHitPointDamage ["HitPelvis", 0.9];
_dude setHitPointDamage ["HitArms", 0.9];
_dude setHitPointDamage ["HitLegs", 0.9];

Short and sweet. I am calling this as a function, not spawning.

Share this post


Link to post
Share on other sites

...And how do you calling it? The script itself has no problem at all and I just tested it and also no problem at all.

23 minutes ago, Volantarius said:

whenever I shoot a Unit their visual damage gets reset to the new location I've shot.

Does this mean when you shoot an arm, “visually” damaged parts are reset to normal state and only arm is damaged?

Share this post


Link to post
Share on other sites

I defined the script in CfgFunctions, and called the script in the Init line on a blufor unit. After playing the Unit has the visual damage. Once I shoot a body part, then everything resets and only that part got visually damaged. I can continue to damage the unit after though.

I am disabling the ai with just disableAI "ALL", just to test out.

Share this post


Link to post
Share on other sites

Nope, literally no problem is reploduced. What MODs you're using?

Share this post


Link to post
Share on other sites

Huh, I'm using ACE, CUP, and RHSUSAF. Probably should've tried this without ace since I know its handling damage as well.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×