forked from Mirrors/openclonk
40 lines
1.3 KiB
XML
40 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<!DOCTYPE funcs
|
|
SYSTEM '../../../clonk.dtd'>
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
<funcs>
|
|
<func>
|
|
<title>DetachMesh</title>
|
|
<category>Objects</category>
|
|
<subcat>Display</subcat>
|
|
<version>5.1 OC</version>
|
|
<syntax>
|
|
<rtype>bool</rtype>
|
|
<params>
|
|
<param>
|
|
<type>int</type>
|
|
<name>attach_number</name>
|
|
<desc>Number of the mesh to detach. <funclink>AttachMesh</funclink> returns such a number.</desc>
|
|
</param>
|
|
</params>
|
|
</syntax>
|
|
<desc>If a mesh was previously attached to another one via <funclink>AttachMesh</funclink> then it can be detached again using this function.</desc>
|
|
<examples>
|
|
<example>
|
|
<code>func FxIntCarryBowStart(object target, effect)
|
|
{
|
|
effect.mesh = target-><funclink>AttachMesh</funclink>(Bow, "pos_hand1", "main");
|
|
}
|
|
|
|
func FxIntCarryBowStop(object target, effect)
|
|
{
|
|
target-><funclink>DetachMesh</funclink>(effect.mesh);
|
|
}</code>
|
|
<text>Script for an <emlink href="script/Effects.html">effect</emlink>: The effect target carries a bow as long as the effect remains active.</text>
|
|
</example>
|
|
</examples>
|
|
<related><funclink>AttachMesh</funclink></related>
|
|
</func>
|
|
<author>Clonk-Karl</author><date>2010-04</date>
|
|
</funcs>
|