Entity DestroyAttachment

From CryWiki

Jump to: navigation, search

entity:DestroyAttachment(number, string)

Description

Destroys an attachment, created earlier with CreateBoneAttachment.

Arguments

  1. Entity slot
  2. Attachment name


Example

Lua (example)
g_localActor:CreateBoneAttachment(0, "weaponPos_grenade_R_hip", "MyAttachment");
g_localActor:DestroyAttachment(0, "MyAttachment");


Personal tools