ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setElementColShape

Function

setElementColShape

ServerElementsTrilogy Hub only

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)

See also