Entity CreateBoneAttachment

From CryWiki

Jump to: navigation, search

entity:CreateBoneAttachment(number, string, string)

Description

Creates an attachment on a bone, to be used later with SetAttachmentObject.

Arguments

  1. Entity slot
  2. Bone name
  3. Attachment name


Example

Lua (example)
-- Makes an attachment on the right hip of the localactor, called MyAttachment
g_localActor:CreateBoneAttachment(0, "weaponPos_grenade_R_hip", "MyAttachment");


Notes

To delete the attachment, use DestroyAttachment.

Personal tools