This commit is contained in:
Shtoyan 2022-01-21 18:21:17 +04:00
parent d697163803
commit 6ba3855134

View File

@ -1369,14 +1369,17 @@ simulated function ApplyLaserState()
else else
LaserAttachment.bHidden = false; LaserAttachment.bHidden = false;
if (altLaserAttachment == none && altLaserAttachmentBone != '') if (altLaserAttachment == none)
{ {
SetBoneRotation(altLaserAttachmentBone, altLaserAttachmentRotation); if (altLaserAttachmentBone != '')
altLaserAttachment = Spawn(LaserAttachmentClass,,,,);
if (altLaserAttachment != none)
{ {
AttachToBone(altLaserAttachment, altLaserAttachmentBone); SetBoneRotation(altLaserAttachmentBone, altLaserAttachmentRotation);
altLaserAttachment.SetRelativeLocation(altLaserAttachmentOffset); altLaserAttachment = Spawn(LaserAttachmentClass,,,,);
if (altLaserAttachment != none)
{
AttachToBone(altLaserAttachment, altLaserAttachmentBone);
altLaserAttachment.SetRelativeLocation(altLaserAttachmentOffset);
}
} }
} }
else else