mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add entity event: on_grounded
This commit is contained in:
parent
eb2be5e8b6
commit
e0e5faa4a8
7 changed files with 24 additions and 6 deletions
|
|
@ -5,3 +5,7 @@ end
|
|||
function on_despawn(eid)
|
||||
print("despawn", eid)
|
||||
end
|
||||
|
||||
function on_grounded(eid)
|
||||
Transform.set_rot(eid, mat4.rotate({0, 1, 0}, math.random()*360))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue