- Documentation
- Server functions
- getElementColShape
Function
getElementColShape
Returns the collision shape assigned to a marker or pickup.
Syntax
colshape getElementColShape(element theElement)Arguments
theElementelement- A marker or pickup.
Returns
The shape or false.
Example
local shape = getElementColShape(marker)
if shape then
outputServerLog("W znaczniku: " .. #getElementsWithinColShape(shape, "player"))
end