Sandbox.BoneCollection/Bone Bone { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Bone property of the Hitbox class represents the specific bone within a bone collection that the hitbox is associated with. This property is crucial for determining the exact location and orientation of the hitbox in relation to the skeletal structure of a game object.

Usage

To use the Bone property, you need to have an instance of the Hitbox class. You can then access the Bone property to get or set the bone associated with the hitbox. This is typically used in scenarios where you need to align the hitbox with a specific part of a character's skeleton.

Example

// Assuming 'hitbox' is an instance of Hitbox
BoneCollection.Bone bone = hitbox.Bone;

// To set a new bone
BoneCollection.Bone newBone = /* obtain or create a Bone instance */;
hitbox.Bone = newBone;