- Documentation
- Client events
- onClientElementColShapeHit
Event
onClientElementColShapeHit
An element entered a collision shape (the element-side version, on the client).
Handler
addEventHandler("onClientElementColShapeHit", root, function(theShape, matchingDimension) ... end)Parameters
theShapecolshape- The shape.
matchingDimensionbool- Whether in the same dimension.
Source
source is the element.
Example
addEventHandler("onClientElementColShapeHit", localPlayer, function(shape)
if getElementData(shape, "strefa") then outputChatBox("Wszedłeś do strefy") end
end)