update entity.spawn(...): now returns an Entity instead of id
This commit is contained in:
@@ -4,4 +4,5 @@ end
|
||||
|
||||
function on_grounded()
|
||||
entity.transform:set_rot(mat4.rotate({0, 1, 0}, math.random()*360))
|
||||
entity:despawn()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user