Working with scripts, testing new chair

This commit is contained in:
Vladislav Khorev committed 2026-05-17 20:28:18 +03:00
1 parent 4044acefb2
commit 49501e32ce
9 files changed
+63646 -88

No files matched your search

+5
View File
@@ -198,6 +198,11 @@ namespace ZL {
if (game->player)
game->player->hp = value;
});
// get_player_hp() → float (0 if no player)
api.set_function("get_player_hp",
[game]() -> float {
return game->player ? game->player->hp : 0.0f;
});
// Global integer store — shared across all location scripts.
// setIntValue(key, value) / getIntValue(key) → int (0 if not set)