- Documentation
- Server events
- onElementColShapeHit
Event
onElementColShapeHit
An element entered a collision shape (the version from the element side).
Handler
addEventHandler("onElementColShapeHit", root, function(theShape, matchingDimension) ... end)Parameters
theShapecolshape- The shape.
matchingDimensionbool- Whether in the same dimension.
Source
source is the element.
Example
addEventHandler("onElementColShapeHit", root, function(shape, dim)
if getElementType(source) == "vehicle" and dim then setElementData(source, "wStrefie", true) end
end)