Fixing hp bugs
This commit is contained in:
1 parent
49501e32ce
commit
21bf3f0710
10 files changed
+38
-16
No files matched your search
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user