Add a command and verb to attach a body part to yourself (#2372)

* Add attachbodypart command

* Make the slot name depend on the verb instead of the command
This commit is contained in:
DrSmugleaf
2020-10-25 23:16:57 +01:00
committed by GitHub
parent 4c46c7afce
commit d460d2b64d
6 changed files with 169 additions and 1 deletions

View File

@@ -286,7 +286,8 @@ namespace Content.Shared.GameObjects.Components.Body.Part
private void AddedToBody(IBody body)
{
Owner.Transform.AttachParent(Body!.Owner);
Owner.Transform.LocalRotation = 0;
Owner.Transform.AttachParent(body.Owner);
OnAddedToBody(body);
foreach (var mechanism in _mechanisms)