Quote:
Originally Posted by rswallen
Update the code to use entity references (and check the healthbar is a valid entity before setting its health percentage)
|
Quote:
Originally Posted by Wliu
Fixed by checking that the healthbar is valid before updating the healthbar.
Probably do need to convert it to entity references though.
If I'm lucky, 1.10.1 will be released today.
|
It'd also help to use SDKHooks to catch the creation (and destruction) of the monster_resource entity.
That should only happen at map end / map start, though.
For reference, you can consult the
Horseman Healthbar code.
__________________