Wearable: Attachment flags

Wearable items can have attachment flags, such as matching the target
skeleton
install-platforms
Mark 2017-08-13 23:41:04 +02:00
parent bbdd38830e
commit eb1657c3e3
1 changed files with 3 additions and 2 deletions

View File

@ -141,8 +141,9 @@ local Wearing = new Effect {
var attachment_bone = this.item->~GetWearBone() ?? "main";
var attachment_transform = this.item->~GetWearTransform(this.Target);
var attachment_flags = this.item->~GetWearFlags(); // does not need a default value
this.attach = Target->AttachMesh(this.item, this.identifier, attachment_bone, attachment_transform);
this.attach = Target->AttachMesh(this.item, this.identifier, attachment_bone, attachment_transform, attachment_flags);
},
Damage = func(int damage, int cause, int by_player) {
@ -177,4 +178,4 @@ local Wearing = new Effect {
if (this.item)
this.item->TakenOff();
}
};
};