Jump to content
whiztler

[SOLVED] setHitIndex not changing hitPartIndex damage

Recommended Posts

Re: https://community.bistudio.com/wiki/setHitIndex and https://community.bistudio.com/wiki/getHitIndex

 

I placed an offroad in Eden, named it vv and ran the following in the debug window:

vv setDamage 0.5;
systemchat format ["HitPartIndex 0, damage: %1", vv getHitIndex 0]; // 0.5
vv setHitIndex [0, 0.1];
systemchat format ["HitPartIndex 0, damage: %1", vv getHitIndex 0]; // still 0.5

Can't seem to change the HitPartIndex. Any ideas/suggestions? 

Share this post


Link to post
Share on other sites
2 hours ago, whiztler said:

Re: https://community.bistudio.com/wiki/setHitIndex and https://community.bistudio.com/wiki/getHitIndex

 

I placed an offroad in Eden, named it vv and ran the following in the debug window:


vv setDamage 0.5;
systemchat format ["HitPartIndex 0, damage: %1", vv getHitIndex 0]; // 0.5
vv setHitIndex [0, 0.1];
systemchat format ["HitPartIndex 0, damage: %1", vv getHitIndex 0]; // still 0.5

Can't seem to change the HitPartIndex. Any ideas/suggestions? 

 

Works as intended, first one returns 0.5, second one 0.1.

wqgnC2d.png

 

Cheers

  • Thanks 1

Share this post


Link to post
Share on other sites

Tried with a new mission and work as should. Thanks!

  • 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

×