Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
af4b63ff
Commit
af4b63ff
authored
8 years ago
by
raymoo
Committed by
kwolekr
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix missing parameters in some mentions of entity callbacks
parent
403dada8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/lua_api.txt
+5
-3
5 additions, 3 deletions
doc/lua_api.txt
with
5 additions
and
3 deletions
doc/lua_api.txt
+
5
−
3
View file @
af4b63ff
...
...
@@ -3329,13 +3329,15 @@ Registered entities
* It has the member `.object`, which is an `ObjectRef` pointing to the object
* The original prototype stuff is visible directly via a metatable
* Callbacks:
* `on_activate(self, staticdata)`
* `on_activate(self, staticdata
, dtime_s
)`
* Called when the object is instantiated.
* `dtime_s` is the time passed since the object was unloaded, which can
be used for updating the entity state.
* `on_step(self, dtime)`
* Called on every server tick, after movement and collision processing.
`dtime` is usually 0.1 seconds, as per the `dedicated_server_step` setting
`in minetest.conf`.
* `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir`
* `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir
)
`
* Called when somebody punches the object.
* Note that you probably want to handle most punches using the
automatic armor group system.
...
...
@@ -3463,7 +3465,7 @@ Definition tables
on_activate = function(self, staticdata, dtime_s),
on_step = function(self, dtime),
on_punch = function(self,
hitte
r),
on_punch = function(self,
puncher, time_from_last_punch, tool_capabilities, di
r),
on_rightclick = function(self, clicker),
get_staticdata = function(self),
-- ^ Called sometimes; the string returned is passed to on_activate when
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment