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