world.entityAimPosition
This commit is contained in:
parent
840d64dbed
commit
9e3048ea16
@ -539,6 +539,11 @@ namespace LuaBindings {
|
|||||||
return entity->isInteractive();
|
return entity->isInteractive();
|
||||||
return {};
|
return {};
|
||||||
});
|
});
|
||||||
|
callbacks.registerCallback("entityAimPosition", [world](EntityId entityId) -> Maybe<Vec2F> {
|
||||||
|
if (auto entity = world->get<ToolUserEntity>(entityId))
|
||||||
|
return entity->aimPosition();
|
||||||
|
return {};
|
||||||
|
});
|
||||||
callbacks.registerCallback("entityMouthPosition", [world](EntityId entityId) -> Maybe<Vec2F> {
|
callbacks.registerCallback("entityMouthPosition", [world](EntityId entityId) -> Maybe<Vec2F> {
|
||||||
if (auto entity = world->get<ChattyEntity>(entityId))
|
if (auto entity = world->get<ChattyEntity>(entityId))
|
||||||
return entity->mouthPosition();
|
return entity->mouthPosition();
|
||||||
|
Loading…
Reference in New Issue
Block a user