Progetto H — Riferimento API Documentazione & Scripting
Funzione Server Veloce

Pickable:SetAttachmentSettings

Imposta come questo Pickable si aggancia al Character quando viene raccolto
Mostra l'originale in inglese
Sets the Attachment Settings for this Pickable (how it attaches to the Character when Picking up)

Sintassi

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

Parametri

Nome Tipo Predefinito Descrizione
relative_location Vector Posizione relativa al socket
relative_rotation facoltativo Rotator Rotator(0, 0, 0) Rotazione relativa al socket
socket facoltativo string hand_r_socket Socket del Character a cui agganciarsi una volta raccolto