1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<?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>
|