Fixing hp bugs

This commit is contained in:
Vladislav Khorev committed 2026-05-18 09:17:05 +03:00
1 parent 49501e32ce
commit 21bf3f0710
10 files changed
+38 -16

No files matched your search

+3 -2
View File
@@ -75,12 +75,13 @@ end
game_api.set_location_callbacks(
function()
print("Enter location dorm")
local hp = game_api.getIntValue("player_hp")
local hp = game_api.getFloatValue("player_hp")
game_api.set_player_hp(hp)
end,
function()
print("Exit location dorm")
local hp = game_api.get_player_hp()
game_api.setIntValue("player_hp", hp)
game_api.setFloatValue("player_hp", hp)
end
)