Documentation: More precise description of ObjectRef:remove()
authorsfan5 <sfan5@live.de>
Wed, 12 Feb 2020 21:24:47 +0000 (22:24 +0100)
committersfan5 <sfan5@live.de>
Sun, 23 Feb 2020 21:24:12 +0000 (22:24 +0100)
doc/lua_api.txt

index a16c083c8bcb371fcddeead26b816d5e8e50ece2..b87353b6af27ae1420045ec10ae32d6fa535172d 100644 (file)
@@ -5778,7 +5778,10 @@ This is basically a reference to a C++ `ServerActiveObject`
 
 #### Lua entity only (no-op for other objects)
 
-* `remove()`: remove object (after returning from Lua)
+* `remove()`: remove object
+    * The object is removed after returning from Lua. However the `ObjectRef`
+      itself instantly becomes unusable with all further method calls having
+      no effect and returning `nil`.
 * `set_velocity(vel)`
     * `vel` is a vector, e.g. `{x=0.0, y=2.3, z=1.0}`
 * `add_velocity(vel)`