GetElementInterior
From Multi Theft Auto: Wiki
This function allows you to retrieve the interior of any element. An interior is the current loaded place, 0 being outside.
Syntax
int getElementInterior ( element theElement )
OOP Syntax Help! I don't understand this!
- Method: element:getInterior(...)
- Variable: .interior
- Counterpart: setElementInterior
Required Arguments
- theElement: The element of which you'd like to retrieve the interior
Returns
Returns an int for the interior if theElement is valid, false otherwise.
Example
Click to collapse [-]
ServerThis example shows a player if he is outside or not, when he enters the command 'AmIOutside'.
function AmIOutside ( thePlayer, command ) if ( getElementInterior(thePlayer) == 0 ) then outputChatBox ( "Yes you are outside " .. getPlayerName(thePlayer), thePlayer ) else outputChatBox ( "No you aren't outside " .. getPlayerName(thePlayer), thePlayer ) end end addCommandHandler ( "AmIOutside", AmIOutside )
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