SetElementInterior
Jump to navigation
Jump to search
This function allows you to set the interior of any element. An interior is the current loaded place, 0 being outside.
Syntax
bool setElementInterior ( element theElement, int interior )
Required Arguments
- theElement: The element in which you'd like to set the interior of.
- interior: The interior you want to set the element to.
Returns
Returns 'true' if 'theElement' and 'interior' are valid arguments, 'false' otherwise.
Example
addCommandHandler ( "interior", "interior" ) function interior ( source, key, interior ) if ( interior == "1" ) then setElementInterior ( source, interior, 2233.91, 1714.73, 1011.38 ) else setElementInterior ( source, interior ) end end
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