mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add entity events: on_spawn, on_despawn
This commit is contained in:
parent
e1eb652ef4
commit
eb2be5e8b6
13 changed files with 116 additions and 22 deletions
7
res/content/base/scripts/drop.lua
Normal file
7
res/content/base/scripts/drop.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function on_spawn(eid)
|
||||
print("spawn", eid)
|
||||
end
|
||||
|
||||
function on_despawn(eid)
|
||||
print("despawn", eid)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue