DetachElementFromElement

From Multi Theft Auto: Wiki
Revision as of 01:03, 14 December 2006 by JonChappell (talk | contribs)
Jump to navigation Jump to search

This function detaches attached elements from one another.

Syntax

bool detachElementFromElement ( element theElement, [ element theAttachToElement ] )

Required Arguments

  • theElement: The element to be detached (the "child")

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • theAttachToElement: The element that the other element was attached to (the "parent"). Use this if the first element is bound to multiple elements.

Returns

Returns true if the detaching was successful, false otherwise.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

Shared

-- leave this unless you complete the function