Skip to content

Commit 217f3a4

Browse files
committedFeb 23, 2020
Documentation: More precise description of ObjectRef:remove()
1 parent 2bb7d3a commit 217f3a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎doc/lua_api.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -5778,7 +5778,10 @@ This is basically a reference to a C++ `ServerActiveObject`
57785778

57795779
#### Lua entity only (no-op for other objects)
57805780

5781-
* `remove()`: remove object (after returning from Lua)
5781+
* `remove()`: remove object
5782+
* The object is removed after returning from Lua. However the `ObjectRef`
5783+
itself instantly becomes unusable with all further method calls having
5784+
no effect and returning `nil`.
57825785
* `set_velocity(vel)`
57835786
* `vel` is a vector, e.g. `{x=0.0, y=2.3, z=1.0}`
57845787
* `add_velocity(vel)`

0 commit comments

Comments
 (0)
Please sign in to comment.