mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
update entity script semantics
This commit is contained in:
parent
c54be7b2b1
commit
fc3994446a
11 changed files with 193 additions and 69 deletions
|
|
@ -1,12 +1,7 @@
|
|||
function on_spawn(eid)
|
||||
print("spawn", eid)
|
||||
function on_despawn()
|
||||
print("despawn")
|
||||
end
|
||||
|
||||
function on_despawn(eid)
|
||||
print("despawn", eid)
|
||||
end
|
||||
|
||||
function on_grounded(eid)
|
||||
local entity = stdcomp.new_Entity(eid) -- test
|
||||
function on_grounded()
|
||||
entity.transform:set_rot(mat4.rotate({0, 1, 0}, math.random()*360))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue