GetColShapeType
Jump to navigation
Jump to search
This function is used to retrieve the type of an colshape.
Syntax
string getColShapeType ( colshape theColShape )
OOP Syntax Help! I don't understand this!
- Method: colshape:getShapeType(...)
- Variable: .shapeType
Required Arguments
- theColshape: The colShape you wish to get the type of.
Returns
Returns a string containing the colshapetype, false if invalid arguments were passed.
Example
Click to collapse [-]
SharedThis example show type of every possible shape type.
local circle = createColCircle(0,0,1) local cubboid = createColCuboid(0,0,0,0,0,0) local sphere = createColSphere(0,0,0,0) local rectangle = createColRectangle(0,0,0,0) local polygon = createColPolygon(0,0,0,0,0,0,0,0) local tube = createColTube(0,0,0,0,0) iprint("circle",getColShapeType(circle), circle:getShapeType(), circle.shapeType) iprint("cubboid",getColShapeType(cubboid), cubboid:getShapeType(), cubboid.shapeType) iprint("sphere",getColShapeType(sphere), sphere:getShapeType(), sphere.shapeType) iprint("rectangle",getColShapeType(rectangle), rectangle:getShapeType(), rectangle.shapeType) iprint("polygon",getColShapeType(polygon), polygon:getShapeType(), polygon.shapeType) iprint("tube",getColShapeType(tube), tube:getShapeType(), tube.shapeType)
See Also
- attachElements
- createElement
- destroyElement
- detachElements
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementByIndex
- getElementByID
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getAllElementData
- hasElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementType
- getElementVelocity
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementWithinColShape
- isElementWithinMarker
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementVelocity
- setLowLODElement
- getPedContactElement
- getResourceDynamicElementRoot
- getResourceRootElement