From 9e3048ea16316e434fb899b97b2b48e314fae457 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 1 May 2024 05:04:15 +1000 Subject: [PATCH] world.entityAimPosition --- source/game/scripting/StarWorldLuaBindings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/game/scripting/StarWorldLuaBindings.cpp b/source/game/scripting/StarWorldLuaBindings.cpp index 13be5ee..ba4322d 100644 --- a/source/game/scripting/StarWorldLuaBindings.cpp +++ b/source/game/scripting/StarWorldLuaBindings.cpp @@ -539,6 +539,11 @@ namespace LuaBindings { return entity->isInteractive(); return {}; }); + callbacks.registerCallback("entityAimPosition", [world](EntityId entityId) -> Maybe { + if (auto entity = world->get(entityId)) + return entity->aimPosition(); + return {}; + }); callbacks.registerCallback("entityMouthPosition", [world](EntityId entityId) -> Maybe { if (auto entity = world->get(entityId)) return entity->mouthPosition();