look_at command #3566

Open
opened 2023-01-18 22:39:26 +00:00 by flux · 1 comment
Member

Originally posted by @flux in #2916 (comment)

implement a "/look_at" command which would take the output of player:get_look_dir(), as e.g. listed in bug reports (so i can tell what the player was looking at).

_Originally posted by @flux in https://gitea.your-land.de/your-land/bugtracker/issues/2916#issuecomment-38837_ implement a "/look_at" command which would take the output of `player:get_look_dir()`, as e.g. listed in bug reports (so i can tell what the player was looking at).
flux added the
1. kind/enhancement
label 2023-01-18 22:39:37 +00:00

We already generate a "teleport to this place" command in the bugtracker additonal to the coordinates, so we can easily copy and past.

There even a "player look" table:

Player look:

{
	x = 0.23313282430172,
	y = -0.75972545146942,
	z = 0.60701429843903
}

We should - similar to the generated teleport command - add this to the report mod so that both teleport location AND look direction can easily be copied from the bugtracker.

Offtopic, but related due to command name collision:

There might also be a usecase for a /look_at_player command, which would turn staff in the right direction.

The bailiff has such a mechanic: https://gitea.your-land.de/your-land/yl_bailiff/src/branch/master/bailiff.lua#L9

In general, this sounds like a part of an API for The New Basic Game: your-land/administration#174

We already generate a "teleport to this place" command in the bugtracker additonal to the coordinates, so we can easily copy and past. There even a "player look" table: ``` Player look: { x = 0.23313282430172, y = -0.75972545146942, z = 0.60701429843903 } ``` We should - similar to the generated teleport command - add this to the report mod so that both teleport location AND look direction can easily be copied from the bugtracker. Offtopic, but related due to command name collision: There might also be a usecase for a /look_at_player command, which would turn staff in the right direction. The bailiff has such a mechanic: https://gitea.your-land.de/your-land/yl_bailiff/src/branch/master/bailiff.lua#L9 In general, this sounds like a part of an API for The New Basic Game: https://gitea.your-land.de/your-land/administration/issues/174
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#3566
No description provided.