Skip to content

Commit

Permalink
Documentation: More precise description of ObjectRef:remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 23, 2020
1 parent 2bb7d3a commit 217f3a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/lua_api.txt
Expand Up @@ -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)`
Expand Down

0 comments on commit 217f3a4

Please sign in to comment.