void AttachToParentWithOldPosition() { var _pinManagerBP = pinManager.MyOwner; FHitResult _hit; FVector _oldLoc = MyOwner.GetActorLocation(); FRotator _oldRot = MyOwner.GetActorRotation(); MyOwner.AttachToActor(_pinManagerBP, _pinManagerBP.GetAttachParentSocketName(), EAttachmentRule.KeepRelative, EAttachmentRule.KeepRelative, EAttachmentRule.KeepWorld, true); MyOwner.SetActorLocation(_oldLoc, false, out _hit, false); MyOwner.SetActorRotation(_oldRot, false); }
void NewTurnIsReady(EBowlAction _action) { if (MyMeshComponent == null) { return; } MyOwner.SetActorLocation( MyStartLocation, false, out myHit, false ); MyOwner.SetActorRotation( MyStartRotation, false ); MyMeshComponent.SetSimulatePhysics(false); MyMeshComponent.SetSimulatePhysics(true); }