GetElementAngularVelocity: Difference between revisions
Jump to navigation
Jump to search
Einheit-101 (talk | contribs) (First creation (please check if that info is correct, i am no c++ expert)) |
m (fix revision 14165) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
{{New feature/item|3.0156|1.5.5| | {{New feature/item|3.0156|1.5.5|14165|Gets the current angular velocity of a specified, supported element.}} | ||
==Syntax== | ==Syntax== |
Revision as of 14:15, 28 August 2018
Gets the current angular velocity of a specified, supported element.
Syntax
bool getElementAngularVelocity ( element theElement )
OOP Syntax Help! I don't understand this!
- Method: element:getAngularVelocity(...)
- Variable: .angularVelocity
- Counterpart: setElementAngularVelocity
Required Arguments
- theElement: The element to retrieve the angular velocity from. Can be either a player, ped, object, vehicle or a custom weapon. Server side supports only vehicles currently.
Returns
Returns true if it was succesful, false otherwise.
Example
addCommandHandler("getangularvelocity", function(player) --retrieve angular velocity of the player local avx, avy, avz = getElementAngularVelocity(player) outputChatBox("Your current angular velocity is: X: "..avx.." Y: "..avy.." Z: "..avz, player, 0, 255, 0, false) end)
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