SetElementID: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{Server function}} | |||
[[Category:Incomplete]] | [[Category:Incomplete]] | ||
__NOTOC__ | __NOTOC__ | ||
This function sets the | This function sets the ID of an element to a string. This can be anything from an identifying number, to a name. | ||
==Syntax== | ==Syntax== | ||
Line 10: | Line 11: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theElement:''' The ''element'' you want to set the ID of. | *'''theElement:''' The ''element'' you want to set the ID of. | ||
*'''name:''' The ID | *'''name:''' The new ID for ''theElement''. | ||
===Returns=== | ===Returns=== | ||
This returns ''true'' if | This returns ''true'' if successful. It will return ''false'' if '''theElement''' is invalid, or does not exist, or if '''name''' is invalid, or is not a string. | ||
==Example== | ==Example== |
Revision as of 12:37, 16 August 2007
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.
Syntax
bool setElementID ( element theElement, string name )
Required Arguments
- theElement: The element you want to set the ID of.
- name: The new ID for theElement.
Returns
This returns true if successful. It will return false if theElement is invalid, or does not exist, or if name is invalid, or is not a string.
Example
Example goes here...
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