Scripting/Server/Classes/XML/LinkChild_2

Attach a child / a sibling after it.

Syntax

el.LinkChild(child)
el.LinkSibling(other)

Arguments

Returns

bool

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "linkchild" )
	{
		// el is a el handle (see XML)
		local result = el.LinkChild( 0 );
		MessagePlayer( "el.LinkChild returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: XML

Categories: Server methods | XML