From 7a220cae45ad93133492e442d5026dfffd37e77b Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 20 Aug 2023 12:09:03 +1000 Subject: [PATCH] player.aimPosition --- source/game/scripting/StarPlayerLuaBindings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/game/scripting/StarPlayerLuaBindings.cpp b/source/game/scripting/StarPlayerLuaBindings.cpp index cede4d0..6944e59 100644 --- a/source/game/scripting/StarPlayerLuaBindings.cpp +++ b/source/game/scripting/StarPlayerLuaBindings.cpp @@ -107,6 +107,8 @@ LuaCallbacks LuaBindings::makePlayerCallbacks(Player* player) { callbacks.registerCallback( "interactRadius", [player]() { return player->interactRadius(); }); callbacks.registerCallback("setInteractRadius", [player](float radius) { player->setInteractRadius(radius); }); + callbacks.registerCallback("aimPosition", [player]() { return player->aimPosition(); }); + callbacks.registerCallback("id", [player]() { return player->entityId(); }); callbacks.registerCallback("uniqueId", [player]() { return player->uniqueId(); }); callbacks.registerCallback("isAdmin", [player]() { return player->isAdmin(); });