mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
initial_properties field in entity definition
This commit is contained in:
parent
e297c73913
commit
dc70f50b59
3 changed files with 22 additions and 13 deletions
|
@ -792,8 +792,10 @@ Object Properties
|
|||
|
||||
Entity definition (register_entity)
|
||||
{
|
||||
Everything from object properties,
|
||||
-- entity specific --
|
||||
(Deprecated: Everything in object properties is read directly from here)
|
||||
|
||||
initial_properties = <initial object properties>,
|
||||
|
||||
on_activate = function(self, staticdata),
|
||||
on_step = function(self, dtime),
|
||||
on_punch = function(self, hitter),
|
||||
|
@ -801,6 +803,7 @@ Entity definition (register_entity)
|
|||
get_staticdata = function(self),
|
||||
^ Called sometimes; the string returned is passed to on_activate when
|
||||
the entity is re-activated from static state
|
||||
|
||||
# Also you can define arbitrary member variables here
|
||||
myvariable = whatever,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue