-
-
Notifications
You must be signed in to change notification settings - Fork 10
Element events CollisionStart
Jérôme Leclercq edited this page Dec 8, 2020
·
3 revisions
Called whenever this element collides with another one.
false to prevent the collision, true to let the collision go on.
&&
-
self: Triggered entity. -
other: Triggering entity.
EnableCollisionCallbacks must have been called on the entity for this event to trigger.
entity:On("Init", function (self)
self:EnableCollisionCallbacks(true)
end)
entity:On("CollisionStart", function (self, other)
print("I collided with " .. tostring(other))
return true
end)