IsElementDoubleSided
From Multi Theft Auto: Wiki
This function checks whether an element is double-sided as set by setElementDoubleSided or not.
Syntax
bool isElementDoubleSided ( element theElement )
OOP Syntax Help! I don't understand this!
- Method: element:isDoubleSided(...)
- Variable: .doubleSided
- Counterpart: setElementDoubleSided
Required Arguments
- theElement: The element in which you'd like to check the double-sidedness of.
Returns
Returns true if the theElement is double-sided, false otherwise.
Example
This example checks if the object created is breakable and if it is then breaks it.
Click to collapse [-]
ServeraddCommandHandler("createObj", function(plr, command, id) local x, y, z = getElementPosition(plr) local object = createObject (id, x, y, z) if (isElementDoubleSided(object)) then -- checks if it is double sided or not outputChatBox("The object is double sided", plr) else outputChatBox("The object is not double sided", plr) end end )
See Also
- attachElements
- clearElementVisibleTo
- cloneElement
- createElement
- destroyElement
- detachElements
- getAllElementData
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementCollisionsEnabled
- getElementByID
- getElementByIndex
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementColShape
- getElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementSyncer
- getElementType
- getElementVelocity
- getElementZoneName
- getElementsByType
- getElementsWithinColShape
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementVisibleTo
- isElementWithinColShape
- isElementWithinMarker
- removeElementData
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementSyncer
- setElementVelocity
- setElementVisibleTo
- setLowLODElement