AsYetUntitled / Framework

Altis Life RPG mission framework for Arma 3 originally made by @TAWTonic.
Other
247 stars 310 forks source link

fix hudupdate on healing with FirstAidKit #672

Closed ghost closed 4 years ago

ghost commented 4 years ago

Resolves #666

Changes proposed in this pull request:

note: player-interaction not yet tested

DomT602 commented 4 years ago

I'll predict the generic error as the code was put in unscheduled environment, when it needs scheduled (use spawn not call) and you'll need to remoteExecCall the life_fnc_hudUpdate if the player is not the unit that is healed.

ghost commented 4 years ago

Thanks for the help - I'll try that next ...

ghost commented 4 years ago

[...] and you'll need to remoteExecCall the life_fnc_hudUpdate if the player is not the unit that is healed.

About that: Although I think I may have an idea what you mean (could be wrong tho) as far as I understand the BI wiki this shouldn't be needed. The BI wiki states that the HandleHeal EVH only gets triggered where the _injured unit (the one being healed) is local. So, it shouldn't matter if one heals self or is being healed by another player. It also shouldn't make any difference if a FAK or Medkit is used. Please correct me if I'm wrong on this and suggest edits.

ghost commented 4 years ago

Still only update hud on local when healing myself ...

ghost commented 4 years ago

Ok, so I basicly just copied fn_jailSys about how to call a function remote on a given unit. This should finally fix the issue ...

//update nope - still doesn't work - but now it's updating anyone elses hud when I heal myself jeez - why is it so hard to call a hud update on someone else after waiting for the healing? anyone has any help on this one?

ghost commented 4 years ago

688