add entity event: on_grounded
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user