ScriptObjectAttachment
A script object’s target and relative transform.
Definition
Section titled “Definition”type ScriptObjectAttachmentTarget = | { kind: "player"; player: PlayerTarget } | { kind: "vehicle"; vehicleNetworkId: number } | { kind: "scriptObject"; objectId: number };
type ScriptObjectAttachment = Readonly<{ target: Readonly<{ kind: "player"; playerNetworkId: number } | { kind: "vehicle"; vehicleNetworkId: number } | { kind: "scriptObject"; objectId: number }>; offset: Vector3; rotationDegrees: Vector3;}>;Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
target |
object |
The attachment target. A player attachment uses the character’s network ID in the snapshot. |
offset |
Vector3 |
Position relative to the target. |
rotationDegrees |
Vector3 |
Rotation relative to the target, in degrees. |