SetElementInterior: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 24: | Line 24: | ||
In this example, if a player were to type /interior 1, they would be teleported into this interrior | In this example, if a player were to type /interior 1, they would be teleported into this interrior | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function interior ( source, key, interior ) | function interior ( source, key, interior ) | ||
if ( interior == "1" ) then | if ( interior == "1" ) then | ||
Line 32: | Line 31: | ||
end | end | ||
end | end | ||
addCommandHandler ( "interior", interior ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> |
Revision as of 12:41, 12 August 2007
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, [float x, float y, float z] )
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.
Optional Arguments
- x: A floating point number representing the X coordinate on the map.
- y: A floating point number representing the Y coordinate on the map.
- z: A floating point number representing the Z coordinate on the map.
Example
Click to expand [+]
Server & ClientSee 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