- Documentation
- Server functions
- setElementColShape
Function
setElementColShape
Assigns a collision shape to a marker or pickup. nil removes the assignment.
Syntax
bool setElementColShape(element theElement, colshape theShape)Arguments
theElementelement- A marker or pickup.
theShapecolshape- A shape or
nil.
Returns
true on success.
Example
local shape = createColCircle(1500, -1600, 5)
setElementColShape(marker, shape)