Working on the player respawn correctly

This commit is contained in:
Vladislav Khorev committed 2026-05-18 21:10:55 +03:00
1 parent 27b4b19df4
commit 2659951d8e
20 files changed
+6972 -86

No files matched your search

+9
View File
@@ -227,6 +227,15 @@ namespace ZL {
return it != this_impl->globalFloats->end() ? it->second : 0.0f;
});
api.set_function("get_player_x",
[game]() -> float {
return game->player ? game->player->position.x() : 0.0f;
});
api.set_function("get_player_z",
[game]() -> float {
return game->player ? game->player->position.z() : 0.0f;
});
// set_player_hp(value) — sets the player's current HP directly.
api.set_function("set_player_hp",
[game](float value) {