mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow specifying name for dynamic media files
This commit is contained in:
parent
af69d4f7a9
commit
c90ebad46b
5 changed files with 15 additions and 9 deletions
|
@ -6601,7 +6601,9 @@ Server
|
|||
* Returns boolean indicating success (false if player nonexistent)
|
||||
* `minetest.dynamic_add_media(options, callback)`
|
||||
* `options`: table containing the following parameters
|
||||
* `filepath`: path to a media file on the filesystem
|
||||
* `filename`: name the media file will be usable as
|
||||
(optional, default taken from path)
|
||||
* `filepath`: path to the file on the filesystem
|
||||
* `to_player`: name of the player the media should be sent to instead of
|
||||
all players (optional)
|
||||
* `ephemeral`: boolean that marks the media as ephemeral,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue