GetElementAttachedOffsets

From Multi Theft Auto: Wiki
Revision as of 10:42, 8 November 2010 by Snert (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} This function returns the offsets of an element that has been attached to another element using attachElements. ==Syntax== <syntaxhighlight lang="lua">[lua,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns the offsets of an element that has been attached to another element using attachElements.

Syntax

float, float, float, float, float, float getElementAttachedOffsets ( element theElement )

Required Arguments

  • theElement: The attached element.

Returns

Returns 6 floats, of which the first 3 indicate the position offset (x, y, z), and the last 3 indicate the rotation offset (x, y, z), if successful. false otherwise.

Example

-- TODO

See Also