Progetto H — API Reference API & Scripting Documentation
Function Server Fast

Pickable:SetAttachmentSettings

Sets the Attachment Settings for this Pickable (how it attaches to the Character when Picking up)

Syntax

Lua
my_pickable:SetAttachmentSettings(relative_location, relative_rotation = Rotator(0, 0, 0), socket = hand_r_socket)

Parameters

Name Type Default Description
relative_location Vector Location relative to the Socket
relative_rotation optional Rotator Rotator(0, 0, 0) Rotation relative to the Socket
socket optional string hand_r_socket Character Socket to attach to when picked up