Template:Element functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Add new item template for bone quaternion functions)
 
(28 intermediate revisions by 18 users not shown)
Line 1: Line 1:
*[[clearElementVisibleTo]]
<includeonly>
*[[cloneElement]]
<ul>
*[[createElement]]
{{#if: {{{1|}}}
*[[destroyElement]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getAllElementData]]
|
*[[getAttachedElements]]
    <!-- CLIENT functions -->
*[[getElementAlpha]]
    <li>[[getElementBoneMatrix]]</li>
{{New feature|3.0110|1.1|
    <li>[[getElementBonePosition]]</li>
* [[getElementAttachedOffsets]]
    <li>[[getElementBoneRotation]]</li>
* [[getElementCollisionsEnabled]]
    {{New feature/item|3.0161|1.6.0|22741|<li>[[getElementBoneQuaternion]]</li>}}
}}
    <li>[[getElementBoundingBox]]</li>
*[[getElementAttachedTo]]
    <li>[[getElementDistanceFromCentreOfMassToBaseOfModel]]</li>
*[[getElementByID]]
    <li>[[getElementLighting]]</li>
*[[getElementByIndex]]
    <li>[[getElementRadius]]</li>
*[[getElementChild]]
    <li>[[isElementCollidableWith]]</li>
*[[getElementChildren]]
    <li>[[isElementLocal]]</li>
*[[getElementChildrenCount]]
    <li>[[isElementOnScreen]]</li>
*[[getElementColShape]]
    <li>[[isElementStreamable]]</li>
*[[getElementData]]
    <li>[[isElementStreamedIn]]</li>
*[[getElementDimension]]
    <li>[[isElementSyncer]]</li>
*[[getElementHealth]]
    <li>[[isElementWaitingForGroundToLoad]]</li>
*[[getElementID]]
    <li>[[setElementBoneMatrix]]</li>
*[[getElementInterior]]
    <li>[[setElementBonePosition]]</li>
*[[getElementParent]]
    <li>[[setElementBoneRotation]]</li>
*[[getElementPosition]]
    {{New feature/item|3.0161|1.6.0|22741|<li>[[setElementBoneQuaternion]]</li>}}
{{New feature|3.0004|1.0.4|
    <li>[[setElementCollidableWith]]</li>
*[[getElementRotation]]
    <li>[[setElementStreamable]]</li>
}}
    <li>[[updateElementRpHAnim]]</li>
*[[getElementsByType]]
| {{#ifeq: {{lc:{{{1}}}}} | server
*[[getElementsWithinColShape]]
|
*[[getElementType]]
    <!-- SERVER functions -->
*[[getElementVelocity]]
    <li>[[addElementDataSubscriber]]</li>
*[[getElementZoneName]]
    <li>[[clearElementVisibleTo]]</li>
*[[getRootElement]]
    <li>[[cloneElement]]</li>
*[[isElement]]
    <li>[[getElementSyncer]]</li>
*[[isElementAttached]]
    <li>[[getElementZoneName]]</li>
{{New feature|3.0004|1.0.4|
    <li>[[hasElementDataSubscriber]]</li>
*[[isElementDoubleSided]]
    <li>[[isElementVisibleTo]]</li>
}}
    <li>[[removeElementData]]</li>
{{New feature|3.0110|1.1|
    <li>[[removeElementDataSubscriber]]</li>
*[[isElementFrozen]]
    <li>[[setElementSyncer]]</li>
}}
    <li>[[setElementVisibleTo]]</li>
*[[isElementVisibleTo]]
    }}
*[[isElementWithinColShape]]
  }}
*[[removeElementData]]
</br>
*[[setElementAlpha]]
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
{{New feature|3.0110|1.1|
*[[setElementCollisionsEnabled]]
}}
*[[setElementData]]
{{New feature|3.0004|1.0.4|
*[[setElementDoubleSided]]
}}
*[[setElementDimension]]
{{New feature|3.0110|1.1|
*[[setElementFrozen]]
}}
*[[setElementHealth]]
*[[setElementID]]
*[[setElementInterior]]
*[[setElementParent]]
*[[setElementPosition]]
{{New feature|3.0004|1.0.4|
*[[setElementSyncer]]
*[[setElementRotation]]
}}
*[[setElementVelocity]]
*[[setElementVisibleTo]]
{{New feature|3|1.0|
*[[attachElements]]
*[[detachElements]]
*[[getElementModel]]
*[[getElementSyncer]]
*[[isElementInWater]]
*[[setElementAttachedOffsets]]
*[[setElementModel]]
}}
{{Deprecated items|3|1.0|
*[[attachElementToElement]]
*[[detachElementFromElement]]
}}
}}
<!-- SHARED functions-->
<li>[[attachElements]]</li>
<li>[[createElement]]</li>
<li>[[destroyElement]]</li>
<li>[[detachElements]]</li>
<li>[[getAttachedElements]]</li>
<li>[[getElementAlpha]]</li>
<li>[[getElementAttachedOffsets]]</li>
<li>[[getElementAttachedTo]]</li>
<li>[[getElementByIndex]]</li>
<li>[[getElementByID]]</li>
<li>[[getElementChild]]</li>
<li>[[getElementChildren]]</li>
<li>[[getElementChildrenCount]]</li>
<li>[[getElementCollisionsEnabled]]</li>
<li>[[getElementColShape]]</li>
<li>[[getElementData]]</li>
<li>[[getAllElementData]]</li>
<li>[[hasElementData]]</li>
<li>[[getElementDimension]]</li>
<li>[[getElementHealth]]</li>
<li>[[getElementID]]</li>
<li>[[getElementInterior]]</li>
<li>[[getElementMatrix]]</li>
<li>[[getElementModel]]</li>
<li>[[getElementParent]]</li>
<li>[[getElementPosition]]</li>
<li>[[getElementRotation]]</li>
<li>[[getElementsByType]]</li>
<li>[[getElementsWithinColShape]]</li>
<li>[[getElementsWithinRange]]</li>
<li>[[getElementType]]</li>
<li>[[getElementVelocity]]</li>
<li>[[getLowLODElement]]</li>
<li>[[getRootElement]]</li>
<li>[[isElement]]</li>
<li>[[isElementAttached]]</li>
<li>[[isElementCallPropagationEnabled]]</li>
<li>[[isElementDoubleSided]]</li>
<li>[[isElementFrozen]]</li>
<li>[[isElementInWater]]</li>
<li>[[isElementLowLOD]]</li>
<li>[[isElementWithinColShape]]</li>
<li>[[isElementWithinMarker]]</li>
<li>[[setElementAlpha]]</li>
<li>[[setElementAngularVelocity]]</li>
<li>[[getElementAngularVelocity]]</li>
<li>[[setElementAttachedOffsets]]</li>
<li>[[setElementCallPropagationEnabled]]</li>
<li>[[setElementCollisionsEnabled]]</li>
<li>[[setElementData]]</li>
<li>[[setElementDimension]]</li>
<li>[[setElementDoubleSided]]</li>
<li>[[setElementFrozen]]</li>
<li>[[setElementHealth]]</li>
<li>[[setElementID]]</li>
<li>[[setElementInterior]]</li>
<li>[[setElementModel]]</li>
<li>[[setElementParent]]</li>
<li>[[setElementPosition]]</li>
<li>[[setElementRotation]]</li>
<li>[[setElementVelocity]]</li>
<li>[[setLowLODElement]]</li>
<li>[[getPedContactElement]]</li>
<li>[[getResourceDynamicElementRoot]]</li>
<li>[[getResourceRootElement]]</li>
</ul>
</includeonly>
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 22:35, 30 September 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.