Template:Element functions: Difference between revisions

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

Revision as of 22:29, 6 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.