Table of Contents

Struct ObjectAttachmentSlotData

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents attachment data for an object attached to a player bone.

public readonly struct ObjectAttachmentSlotData
Inherited Members

Constructors

ObjectAttachmentSlotData(int, int, Vector3, Vector3, Vector3, Colour, Colour)

Initializes a new instance of the ObjectAttachmentSlotData struct.

public ObjectAttachmentSlotData(int model, int bone, Vector3 offset, Vector3 rotation, Vector3 scale, Colour colour1, Colour colour2)

Parameters

model int

The model ID of the attached object.

bone int

The bone ID to which the object is attached.

offset Vector3

The offset of the object relative to the bone.

rotation Vector3

The rotation of the object relative to the bone.

scale Vector3

The scale of the attached object.

colour1 Colour

The primary color of the attached object.

colour2 Colour

The secondary color of the attached object.

Fields

Bone

Gets the bone ID to which the object is attached.

public readonly int Bone

Field Value

int

Colour1

Gets the primary color of the attached object.

public readonly Colour Colour1

Field Value

Colour

Colour2

Gets the secondary color of the attached object.

public readonly Colour Colour2

Field Value

Colour

Model

Gets the model ID of the attached object.

public readonly int Model

Field Value

int

Offset

Gets the offset of the object relative to the bone.

public readonly Vector3 Offset

Field Value

Vector3

Rotation

Gets the rotation of the object relative to the bone.

public readonly Vector3 Rotation

Field Value

Vector3

Scale

Gets the scale of the attached object.

public readonly Vector3 Scale

Field Value

Vector3