
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local hud_blodd = {}
minetest.register_on_player_hpchange(function(player, hp_change)
if hp_change<0 then
player:hud_add({
hud_elem_type = "image",
id = 1,
position = {x = 0.5, y = 0.5},
scale = {
x = -100,
y = -100
},
text = "blood_splash.png"
})
minetest.after(0.8, function(player, hp_change)
player:hud_remove({
hud_elem_type = "image",
id = 1,
position = {x = 0.5, y = 0.5},
scale = {
x = -100,
y = -100
},
text = "blood_splash.png"
})
end
)
end
end
)
i have wierd problem with this... it says "player is a nil value"
Please help me!