Template:Element functions: Difference between revisions

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

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.