SetElementPosition: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
JonChappell (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This | This function sets the position of an element to the co-ordinates specified. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setElementPosition ( element | bool setElementPosition ( element theElement, float x, float y, float z ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''theElement:''' A valid [[element]] to be moved. | ||
*'''x:''' The x co-ordinate of the destination. | |||
*'''y:''' The y co-ordinate of the destination. | |||
*'''z:''' The z co-ordinate of the destination. | |||
*''' | |||
*''' | |||
===Returns=== | ===Returns=== | ||
Returns ''true'' if | Returns ''true'' if the function was successful, ''false'' otherwise. | ||
==Example== | ==Example== | ||
Line 30: | Line 26: | ||
==See Also== | ==See Also== | ||
{{ | {{Element functions}} | ||
[[Category:Incomplete]] |
Revision as of 04:22, 3 October 2006
This function sets the position of an element to the co-ordinates specified.
Syntax
bool setElementPosition ( element theElement, float x, float y, float z )
Required Arguments
- theElement: A valid element to be moved.
- x: The x co-ordinate of the destination.
- y: The y co-ordinate of the destination.
- z: The z co-ordinate of the destination.
Returns
Returns true if the function was successful, false otherwise.
Example
This example does...
--This line does... blabhalbalhb --abababa --This line does this... mooo
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