Revision Difference
duplicator.RegisterBoneModifier#528256
<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>
<file line="365">lua/includes/modules/duplicator.lua</file>⤶
<args>
<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>