Working with scripts, testing new chair
This commit is contained in:
1 parent
4044acefb2
commit
49501e32ce
9 files changed
+63646
-88
No files matched your search
@@ -72,5 +72,17 @@ game_api.set_player_hp(200)
|
||||
end
|
||||
end
|
||||
|
||||
game_api.set_location_callbacks(
|
||||
function()
|
||||
print("Enter location dorm")
|
||||
local hp = game_api.getIntValue("player_hp")
|
||||
game_api.set_player_hp(hp)
|
||||
end,
|
||||
function()
|
||||
local hp = game_api.get_player_hp()
|
||||
game_api.setIntValue("player_hp", hp)
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
print("Lua script loaded successfully--!")
|
||||
Reference in new issue
Block a user