Template:Element functions: Difference between revisions

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