Patching Human node
- Last UpdatedDec 06, 2023
- 1 minute read
To enable a player to use the correct custom avatar models, patch its human node.
If there are multiple players, patch all of them. Do this also for non-playing characters (NPC).
Human node patch
Manage the two components of a human node patch:
-
skinMesh: This must correspond to the proper custom avatar.
-
animations: The patch must include the list of all and only the animations supported by the custom avatar. Note that some animations must be included as part of the standard avatar set of animations, while the other are optional. Animations are listed in the dictionary format.
For more information about how to use custom animations, see Avatar node.
Mandatory animations
These are mandatory animations to define in the human node:
-
anim_wait
-
anim_walk
-
anim_run
-
anim_crouch
-
anim_climb
-
anim_stairsup
-
anim_stairsdown
Patch example
This is a patch example for human node.
<patch
name="player0_human" skinMesh="def4_indiM" castShadows="true" animations="{anim_wait=anim_def4_indiM_idle}{anim_walk=anim_def4_indiM_walk}{anim_run=anim_def4_indiM_run}
{anim_crouch=anim_def4_indiM_crouch}{anim_climb=anim_def4_indiM_stairs_climb}
{anim_stairsup=anim_def4_indiM_stairs_up}{anim_stairsdown=anim_def4_indiM_stairs_down}
{wave=anim_def4_indiM_wave}{point=anim_def4_indiM_point}
{come_here=anim_def4_indiM_come_here}
{conversation=anim_def4_indiM_conversation}"/>