mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Improve documentation for player:set_attribute()
This commit is contained in:
parent
637ea86069
commit
76eb3f2b7a
1 changed files with 1 additions and 1 deletions
|
@ -3594,7 +3594,7 @@ This is basically a reference to a C++ `ServerActiveObject`
|
||||||
* See Object Properties for more information
|
* See Object Properties for more information
|
||||||
* `set_attribute(attribute, value)`:
|
* `set_attribute(attribute, value)`:
|
||||||
* Sets an extra attribute with value on player.
|
* Sets an extra attribute with value on player.
|
||||||
* `value` must be a string.
|
* `value` must be a string, or a number which will be converted to a string.
|
||||||
* If `value` is `nil`, remove attribute from player.
|
* If `value` is `nil`, remove attribute from player.
|
||||||
* `get_attribute(attribute)`:
|
* `get_attribute(attribute)`:
|
||||||
* Returns value (a string) for extra attribute.
|
* Returns value (a string) for extra attribute.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue