M MY Multiplayer: Wiki
Lado
Tipo

getColShapeType

Compartilhado

Diz que forma uma área de colisão tem.

int|false getColShapeType(element shape)

Parâmetros

NomeTipoDescrição
shapeelementA área de colisão.

Retorno

0 círculo, 1 caixa, 2 esfera, 3 retângulo, 4 polígono, 5 cilindro. false se a área não tem forma registrada.

Exemplo

if getColShapeType(shape) == 4 then
    local floor, ceiling = getColPolygonHeight(shape)
end

Veja também