AddElementDataSubscriber: Difference between revisions
Jump to navigation
Jump to search
Zangomangu (talk | contribs) (Created page with "{{Server function}} __NOTOC__ {{New items|5.0154|1.5.8|This function subscribes a player to specific element data. This function is used together with setElementDat...") |
Zangomangu (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Server function}} | {{Server function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{New items|5. | {{New items|5.0157|1.5.7-9.20477|This function subscribes a [[player]] to specific [[element data]]. | ||
This function is used together with [[setElementData]] in ''"subscribe"'' mode. | This function is used together with [[setElementData]] in ''"subscribe"'' mode. | ||
}} | }} |
Revision as of 21:37, 2 July 2020
Syntax
bool addElementDataSubscriber ( element theElement, string key, player thePlayer )
OOP Syntax Help! I don't understand this!
- Method: element:addDataSubscriber(...)
- Counterpart: removeElementDataSubscriber
Required Arguments
- theElement: The element you wish to subscribe the player to.
- key: The key you wish to subscribe the player to.
- thePlayer: The player you wish to subscribe.
Returns
Returns true if the player was subscribed, false otherwise.
Example
Click to collapse [-]
ServerTODO
See Also
- attachElements
- createElement
- destroyElement
- detachElements
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementByIndex
- getElementByID
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getAllElementData
- hasElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementType
- getElementVelocity
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementWithinColShape
- isElementWithinMarker
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementVelocity
- setLowLODElement
- getPedContactElement
- getResourceDynamicElementRoot
- getResourceRootElement