Health component does not work properly
All methods on the health component:
- resetToDefaultValue
- resetToMaxValue
- resetToMinValue
- setCurrent
Are not working, example code:
world.events.entityHurt.subscribe(data => {
data.hurtEntity.getComponent("health").setCurrent(1)
})
Expected result:
It should set the current health of the entity you hit to 1
Observed result:
The health of the entity you hit does not change at all.
Note: only tested on entities, not players.
2022-12-26, 04:54 PM
2022-12-30, 10:12 AM
0
2
950902
-