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
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user