Bind key to respawn #6

Open
opened 2022-09-25 13:26:28 +02:00 by ssdaniel24 · 0 comments
Contributor

In the original game there is a button "R" which respawns player (see gameplay 00:03:07).

Minetest don't support custom key-bindings except limited get_player_control():

  • The table consists of fields with the following boolean values representing the pressed keys: up, down, left, right, jump, aux1, sneak, dig, place, LMB, RMB, and zoom.

So, we can use aux1 for respawning player which is free now.

In the original game there is a button "R" which respawns player (see [gameplay](https://www.youtube.com/watch?v=xz97w0299vs) 00:03:07). Minetest don't support custom key-bindings except limited [`get_player_control()`](https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L7105): > * The table consists of fields with the following boolean values representing the pressed keys: `up`, `down`, `left`, `right`, `jump`, `aux1`, `sneak`, `dig`, `place`, `LMB`, `RMB`, and `zoom`. So, we can use `aux1` for respawning player which is free now.
olive added the
enhancement
label 2022-09-26 14:21:57 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 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: olive/cavegame#6
No description provided.