Closed ghost closed 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.
Thanks for the help - I'll try that next ...
[...] 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.
Still only update hud on local when healing myself ...
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?
Resolves #666
Changes proposed in this pull request:
note: player-interaction not yet tested