Garry's Mod Wiki

Revision Difference

duplicator.RegisterBoneModifier#518577

<function name="RegisterBoneModifier" parent="duplicator" type="libraryfunc"> <description> Registers a function to be called on each of an entity's bones when <page>duplicator.ApplyBoneModifiers</page> is called. <note>This function is available to call on the client, but registered functions aren't used anywhere!</note> </description> <realm>Shared</realm> <args> <arg name="key" type="any">The type of the key doesn&#x27;t appear to matter, but it is preferable to use a string.</arg> <arg name="boneModifier" type="function">Function called on each bone that an ent has. Called during &lt;page&gt;duplicator.ApplyBoneModifiers&lt;/page&gt;.&#xA;Function parameters are:&#xA;* &lt;page&gt;Player&lt;/page&gt; ply&#xA;* &lt;page&gt;Entity&lt;/page&gt; ent&#xA;* &lt;page&gt;number&lt;/page&gt; boneID&#xA;* &lt;page&gt;PhysObj&lt;/page&gt; bone&#xA;* &lt;page&gt;table&lt;/page&gt; data&#xA;&#xA;&#xA;The data table that is passed to boneModifier is set with &lt;page&gt;duplicator.StoreBoneModifier&lt;/page&gt;</arg>⤶ <arg name="key" type="any">The type of the key doesn't appear to matter, but it is preferable to use a string.</arg> <arg name="boneModifier" type="function">Function called on each bone that an ent has. Called during <page>duplicator.ApplyBoneModifiers</page>.Function parameters are:⤶ * <page>Player</page> ply⤶ * <page>Entity</page> ent⤶ * <page>number</page> boneID⤶ * <page>PhysObj</page> bone⤶ * <page>table</page> data⤶ ⤶ ⤶ The data table that is passed to boneModifier is set with <page>duplicator.StoreBoneModifier</page></arg>⤶ </args> </function>