Skip to content

GeneralSkeleton ​

Inherits: Skeleton3D

Inherited by: ModularSkeleton

GeneralSkeleton provides standardized attachment points for equipment, VFX, and weapons.

Properties ​

boolhas_mount_seatfalse
boolcan_ride_mountfalse

Variables ​

booloutline_eligibletrue
boolis_transparentfalse
Array[MeshInstance3D]mesh_instances[]
Dictionaryoriginal_attachment_skins{}

Methods ​

Stringget_skeleton_type()
Node3Dget_attachment_point( slot: AttachmentSlot )
Node3Dget_point( slot: PointSlot )
Node3Dfind_point_node( root: Node, slot: int ) static
Node3Dget_grip( weapon_slot: WeaponSlot )
Node3Dfind_named( root: Node, node_name: String ) static
MeshInstance3Dget_equipment_mesh( slot: AttachmentSlot )
boolset_equipment_mesh_with_materials( slot: AttachmentSlot, mesh: Mesh, material_overrides: Array[Material] = [], skin: Skin = null, mesh_scale: float = 1.0 )
boolremove_equipment_mesh( slot: AttachmentSlot )
boolshould_hide_hair_for_helmet()
voidhide_hair_for_helmet()
voidshow_hair_after_helmet()
boolhas_equipment_mesh( slot: AttachmentSlot )
voidstore_original_attachment_skin( attachment_slot: AttachmentSlot )
voidrestore_original_attachment_skin( attachment_slot: AttachmentSlot )
voidclear_stored_original_attachment_skins()
boolhas_stored_original_attachment_skin( attachment_slot: AttachmentSlot )
MeshInstance3Dget_weapon_mesh( weapon_slot: WeaponSlot )
boolset_weapon_mesh_with_materials( weapon_slot: WeaponSlot, mesh: Mesh, material_overrides: Array[Material] = [], scale: float = 1.0 )
boolremove_weapon_mesh( weapon_slot: WeaponSlot )
Vector3get_weapon_enchant_vfx_position( weapon_slot: WeaponSlot )
Dictionaryget_weapon_enchant_segment( weapon_slot: WeaponSlot )
Dictionaryenchant_segment_of( holder: Object ) static
Vector3get_weapon_enchant_vfx_global_position( weapon_slot: WeaponSlot )
Vector3get_weapon_projectile_spawn_point( weapon_slot: WeaponSlot )
Vector3get_weapon_projectile_spawn_global_position( weapon_slot: WeaponSlot )
boolset_body_part_mesh_with_materials( body_slot: BodySlot, mesh: Mesh, material_overrides: Array[Material] = [], skin: Skin = null, scale: float = 1.0 )
boolset_body_part_mesh( body_slot: BodySlot, mesh: Mesh, material: Material = null, scale: float = 1.0, skin: Skin = null )
boolremove_body_part_mesh( body_slot: BodySlot )
boolrestore_body_part_mesh( body_slot: BodySlot )
voidstore_original_body_part_skin( body_slot: BodySlot )
voidrestore_original_body_part_skin( body_slot: BodySlot )
boolapply_material_to_body( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null )
boolapply_material_to_weapons( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null )
boolapply_material_to_main_hand( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null )
boolapply_material_to_off_hand( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null )
Array[MeshInstance3D]get_body_meshes()
Array[MeshInstance3D]get_weapon_meshes()
boolcleanup_material_from_body( selection: VFXSelectionMaterial )
boolcleanup_material_from_weapons( selection: VFXSelectionMaterial )
boolcleanup_material_from_main_hand( selection: VFXSelectionMaterial )
boolcleanup_material_from_off_hand( selection: VFXSelectionMaterial )
voidapply_selection_outline( selection_color: Color, power: float = 3.0, intensity: float = 0.5, threshold: float = 0.0 )
voidremove_selection_outline()
voidset_visual_layer( layer: int )
Stringbody_slot_to_database_category( slot: BodySlot ) static
Stringfacial_feature_to_database_category( feature: FacialFeature ) static
Stringattachment_slot_to_database_category( slot: AttachmentSlot ) static

Signals ​

body_part_mesh_changed( body_slot: int, mesh: Mesh, materials: Array, skin: Skin, scale: float ) ​

Emitted when a body part mesh is changed (for ModularSkeleton override)

attachment_mesh_changed( attachment_slot: int, mesh: Mesh, materials: Array, skin: Skin, scale: float ) ​

Emitted when an attachment mesh is changed

weapon_mesh_changed( weapon_slot: int, mesh: Mesh, materials: Array, scale: float ) ​

Emitted when a weapon mesh is changed

mesh_removed( slot_type: String, slot: int ) ​

Emitted when any mesh is removed

Enumerations ​

enum BodySlot ​

The options of body slot: body head, body torso, body upper arm left, body upper arm right, body lower arm left, body lower arm right, body hand left, body hand right, body hips, body upper leg left ....

  • BODY_HEAD = 0
  • BODY_TORSO = 1
  • BODY_UPPER_ARM_LEFT = 2
  • BODY_UPPER_ARM_RIGHT = 3
  • BODY_LOWER_ARM_LEFT = 4
  • BODY_LOWER_ARM_RIGHT = 5
  • BODY_HAND_LEFT = 6
  • BODY_HAND_RIGHT = 7
  • BODY_HIPS = 8
  • BODY_UPPER_LEG_LEFT = 9
  • BODY_UPPER_LEG_RIGHT = 10
  • BODY_LOWER_LEG_LEFT = 11
  • BODY_LOWER_LEG_RIGHT = 12
  • BODY_FOOT_LEFT = 13
  • BODY_FOOT_RIGHT = 14

enum FacialFeature ​

The options of facial feature: face eyes, face eyebrows, face ears, face eye left, face eye right, face eyebrow left, face eyebrow right, face ear left, face ear right, face nose ....

  • FACE_EYES = 0
  • FACE_EYEBROWS = 1
  • FACE_EARS = 2
  • FACE_EYE_LEFT = 3
  • FACE_EYE_RIGHT = 4
  • FACE_EYEBROW_LEFT = 5
  • FACE_EYEBROW_RIGHT = 6
  • FACE_EAR_LEFT = 7
  • FACE_EAR_RIGHT = 8
  • FACE_NOSE = 9
  • FACE_TEETH = 10
  • FACE_TONGUE = 11
  • FACE_HAIR = 12
  • FACE_FACIAL_HAIR = 13

enum AttachmentSlot ​

The options of attachment slot: head, face, chest, back, hips left, hips right, hips front, hips back, left hand, right hand ....

  • HEAD = 0
  • FACE = 1
  • CHEST = 2
  • BACK = 3
  • HIPS_LEFT = 4
  • HIPS_RIGHT = 5
  • HIPS_FRONT = 6
  • HIPS_BACK = 7
  • LEFT_HAND = 8
  • RIGHT_HAND = 9
  • LEFT_SHOULDER = 10
  • RIGHT_SHOULDER = 11
  • LEFT_KNEE = 12
  • RIGHT_KNEE = 13
  • LEFT_ELBOW = 14
  • RIGHT_ELBOW = 15
  • HELMET = 16
  • CLOAK = 17

enum WeaponSlot ​

The options of weapon slot: main hand, off hand.

  • MAIN_HAND = 0 - Right hand weapon
  • OFF_HAND = 1 - Left hand weapon

enum PointSlot ​

THE POINTS of the model (2026-11-14, the user: a fixed list of points, each a Node3D (a Marker3D) under a BoneAttachment3D of its bone, set in Entity Assets > Skeletons with a 3D tool). Where effects, shots and the eyes of the model are: a point follows its bone and sits where it was put on it (the palm, not the wrist bone; the middle of the head, not the neck). Overhead and Feet are on the model itself (no bone). The weapon grips (MainHandGrip, OffHandGrip) are points too: the weapon meshes are under them.

  • HEAD = 0
  • CHEST = 1
  • LEFT_HAND = 2
  • RIGHT_HAND = 3
  • OVERHEAD = 4
  • FEET = 5
  • BACK = 6
  • HIP_LEFT = 7
  • HIP_RIGHT = 8
  • SHOULDER_LEFT = 9
  • SHOULDER_RIGHT = 10
  • ELBOW_LEFT = 11
  • ELBOW_RIGHT = 12
  • KNEE_LEFT = 13
  • KNEE_RIGHT = 14

Constants ​

  • Array[Dictionary] POINTS = [ - Each point: its node (a unique name), the bone it is on by default ("": the model), what it is called, and what uses it
  • Array[Dictionary] GRIPS = [ - The grips of the weapon slots: where a weapon's handle is held (a weapon mesh has its pivot at the handle; its own offset, set in Assets > Meshes, is added on the grip)
  • Array[String] WEAPON_META_KEYS = ["enchant_start", "enchant_end", "enchant_width", "enchant_vfx_position", "pr... - The metadata a weapon mesh carries to its MeshInstance3D: the enchant segment (start, end, width; the old enchant point), the projectile spawn point

Property descriptions ​

bool has_mount_seat = false ​

True when the model has a seat for a rider.

bool can_ride_mount = false ​

True when the model can ride a mount.

Variable descriptions ​

bool outline_eligible = true ​

True when the skeleton may get an outline (a target highlight).

bool is_transparent = false ​

True while the skeleton is faded out.

Array[MeshInstance3D] mesh_instances = [] ​

Every mesh of the skeleton (for outlines and transparency).

Dictionary original_attachment_skins = ​

Storage for original skins before equipment changes them (attachments)

Method descriptions ​

String get_skeleton_type() ​

The kind of skeleton ("GeneralSkeleton").

Node3D get_attachment_point( slot: AttachmentSlot ) ​

The holder of the equipment meshes of an attachment slot (head, hand, back ...), or null. The point of an effect is get_point().

Node3D get_point( slot: PointSlot ) ​

The node of a point of the model (a Marker3D under the BoneAttachment3D of its bone; Overhead and Feet on the model), or null. A skeleton made before the points: Head, Chest and the hands are its old BoneAttachment3D nodes (a mesh holder of equipment is no point: null)

Node3D find_point_node( root: Node, slot: int ) ​

The node of a point under a skeleton (by its unique name, or found by name: a skeleton put in another scene keeps its points)

Node3D get_grip( weapon_slot: WeaponSlot ) ​

The grip of a weapon slot (the weapon mesh is under it), or null (a skeleton made before the grips: the weapon is right under the hand bone)

Node3D find_named( root: Node, node_name: String ) ​

A node of the skeleton by its unique name, or searched for by name

MeshInstance3D get_equipment_mesh( slot: AttachmentSlot ) ​

Find or create equipment mesh for a slot

bool set_equipment_mesh_with_materials( slot: AttachmentSlot, mesh: Mesh, material_overrides: Array[Material] = [], skin: Skin = null, mesh_scale: float = 1.0 ) ​

Set equipment mesh with full support (material arrays + skin + scale)

bool remove_equipment_mesh( slot: AttachmentSlot ) ​

Remove equipment mesh

bool should_hide_hair_for_helmet() ​

Virtual method for GeneralSkeleton - no hair hiding support

void hide_hair_for_helmet() ​

Hide hair and facial hair when helmet is equipped

void show_hair_after_helmet() ​

Show hair and facial hair when helmet is unequipped

bool has_equipment_mesh( slot: AttachmentSlot ) ​

Check if equipment is attached

void store_original_attachment_skin( attachment_slot: AttachmentSlot ) ​

Store the current skin as the original for an attachment (call before equipping)

void restore_original_attachment_skin( attachment_slot: AttachmentSlot ) ​

Restore the original skin for an attachment (call when unequipping)

void clear_stored_original_attachment_skins() ​

Clear stored original attachment skins (cleanup method)

bool has_stored_original_attachment_skin( attachment_slot: AttachmentSlot ) ​

Check if we have stored original skin for an attachment

MeshInstance3D get_weapon_mesh( weapon_slot: WeaponSlot ) ​

The mesh of the weapon in a weapon slot (main hand or off hand).

bool set_weapon_mesh_with_materials( weapon_slot: WeaponSlot, mesh: Mesh, material_overrides: Array[Material] = [], scale: float = 1.0 ) ​

Enhanced: Set weapon mesh with material array support (no skin - weapons don't use skins)

bool remove_weapon_mesh( weapon_slot: WeaponSlot ) ​

Remove weapon mesh

Vector3 get_weapon_enchant_vfx_position( weapon_slot: WeaponSlot ) ​

Get the enchant VFX position for a weapon slot (in local space relative to weapon mesh)

Dictionary get_weapon_enchant_segment( weapon_slot: WeaponSlot ) ​

The ENCHANT SEGMENT of the weapon in a slot (2026-11-14), in the weapon mesh's own space: {start, end, width}. Set in Assets > Meshes (the Enchant tool); a mesh with only the old enchant point starts there and runs 1.1 m up; a mesh with neither gets the old enchants' blade (1.1 m up from its origin)

Dictionary enchant_segment_of( holder: Object ) ​

The enchant segment read from the metas of a weapon mesh node (they come over from the mesh when it is put in the hand) or of a Mesh itself; see get_weapon_enchant_segment

Vector3 get_weapon_enchant_vfx_global_position( weapon_slot: WeaponSlot ) ​

Get the enchant VFX global position for a weapon slot

Vector3 get_weapon_projectile_spawn_point( weapon_slot: WeaponSlot ) ​

Get the projectile spawn point for a weapon slot (in local space relative to weapon mesh)

Vector3 get_weapon_projectile_spawn_global_position( weapon_slot: WeaponSlot ) ​

Get the projectile spawn global position for a weapon slot

bool set_body_part_mesh_with_materials( body_slot: BodySlot, mesh: Mesh, material_overrides: Array[Material] = [], skin: Skin = null, scale: float = 1.0 ) ​

Virtual method: Set body part mesh with materials (GeneralSkeleton doesn't support body parts)

bool set_body_part_mesh( body_slot: BodySlot, mesh: Mesh, material: Material = null, scale: float = 1.0, skin: Skin = null ) ​

Virtual method: Set body part mesh (GeneralSkeleton doesn't support body parts)

bool remove_body_part_mesh( body_slot: BodySlot ) ​

Virtual method: Remove body part mesh

bool restore_body_part_mesh( body_slot: BodySlot ) ​

Virtual method: Restore body part mesh to base version

void store_original_body_part_skin( body_slot: BodySlot ) ​

Virtual method: Store original body part skin (GeneralSkeleton doesn't support body parts)

void restore_original_body_part_skin( body_slot: BodySlot ) ​

Virtual method: Restore original body part skin (GeneralSkeleton doesn't support body parts)

bool apply_material_to_body( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null ) ​

Apply material to all body/equipment meshes (excludes weapons). A layer of MaterialLayers keyed by the selection (VFXMaterial puts its own layers on instead)

bool apply_material_to_weapons( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null ) ​

Apply material to all weapon meshes

bool apply_material_to_main_hand( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null ) ​

Apply material to main hand weapon only

bool apply_material_to_off_hand( selection: VFXSelectionMaterial, _entity: Entity = null, _timer: Timer = null ) ​

Apply material to off hand weapon only

Array[MeshInstance3D] get_body_meshes() ​

Get body meshes (equipment meshes, excludes weapons)

Array[MeshInstance3D] get_weapon_meshes() ​

Get weapon meshes only

bool cleanup_material_from_body( selection: VFXSelectionMaterial ) ​

Cleanup material from body meshes

bool cleanup_material_from_weapons( selection: VFXSelectionMaterial ) ​

Cleanup material from weapons

bool cleanup_material_from_main_hand( selection: VFXSelectionMaterial ) ​

Cleanup material from main hand

bool cleanup_material_from_off_hand( selection: VFXSelectionMaterial ) ​

Cleanup material from off hand

void apply_selection_outline( selection_color: Color, power: float = 3.0, intensity: float = 0.5, threshold: float = 0.0 ) ​

Draws an outline on every mesh: color, power, intensity and threshold.

void remove_selection_outline() ​

Takes the outline off every mesh.

void set_visual_layer( layer: int ) ​

Set the visual layer for all meshes in this skeleton Used for camera cull mask isolation (e.g., character previews)

String body_slot_to_database_category( slot: BodySlot ) ​

Helper functions to convert enums to database category strings

String facial_feature_to_database_category( feature: FacialFeature ) ​

The name of a facial feature in the database.

String attachment_slot_to_database_category( slot: AttachmentSlot ) ​

The name of an attachment slot in the database.