Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Reload Animation not Triggering

I have modified the "ShooterGame" to be a third person shooter. So far it was gone really well, everything is working great. I am having difficulty getting the "HeroTPP Reload" animation to work.

alt text

I currently have my player pawn set up like this. I set the Mesh to "HeroTPP" and under Mesh set the Reload animation to "HeroTPP_RifleReload" I know this is a good animation.

Here is my code for initiating my character. Sorry in advance for the wall of text.

 AShooterCharacter::AShooterCharacter(const class FPostConstructInitializeProperties& PCIP) 
     : Super(PCIP.SetDefaultSubobjectClass<UShooterCharacterMovement>(ACharacter::CharacterMovementComponentName))
     Mesh1P = PCIP.CreateDefaultSubobject<USkeletalMeshComponent>(this, TEXT("PawnMesh1P"));
     Mesh1P->AttachParent = CapsuleComponent;
     Mesh1P->bOnlyOwnerSee = true;
     Mesh1P->bOwnerNoSee = false;
     Mesh1P->bCastDynamicShadow = false;
     Mesh1P->bReceivesDecals = false;
     Mesh1P->MeshComponentUpdateFlag = EMeshComponentUpdateFlag::OnlyTickPoseWhenRendered;
     Mesh1P->PrimaryComponentTick.TickGroup = TG_PrePhysics;
     Mesh1P->bChartDistanceFactor = false;
     Mesh->bOnlyOwnerSee = false;
     Mesh->bOwnerNoSee = true;
     Mesh->bReceivesDecals = false;
     Mesh->SetCollisionResponseToChannel(COLLISION_WEAPON, ECR_Block);
     Mesh->SetCollisionResponseToChannel(COLLISION_PROJECTILE, ECR_Block);
     Mesh->SetCollisionResponseToChannel(ECC_Visibility, ECR_Block);
     CapsuleComponent->SetCollisionResponseToChannel(ECC_Camera, ECR_Ignore);
     CapsuleComponent->SetCollisionResponseToChannel(COLLISION_PROJECTILE, ECR_Block);
     CapsuleComponent->SetCollisionResponseToChannel(COLLISION_WEAPON, ECR_Ignore);
     CharacterMovement->GravityScale = 1.5f;
     CharacterMovement->AirControl = 0.1f;
     bUseControllerRotationPitch = false;
     bUseControllerRotationYaw = true;
     bUseControllerRotationRoll = false;
     CameraBoom = PCIP.CreateDefaultSubobject<USpringArmComponent>(this, TEXT("CameraBoom"));
     CameraBoom->TargetArmLength = 150.0f;
     CameraBoom->SocketOffset = FVector(0.0f, 50.0f, 50.0f);
     CameraBoom->bUseControllerViewRotation = true;
     FollowCamera = PCIP.CreateDefaultSubobject<UCameraComponent>(this, TEXT("FollowCamera"));
     FollowCamera->AttachTo(CameraBoom, USpringArmComponent::SocketName);
     FollowCamera->bUseControllerViewRotation = false;
     TargetingSpeedModifier = 0.8f;
     bIsTargeting = false;
     RunningSpeedModifier = 1.5f;
     bWantsToRun = false;
     bWantsToFire = false;
     LowHealthPercentage = 0.5f;
     BaseTurnRate = 45.f;
     BaseLookUpRate = 45.f;

Thanks for the help!

Product Version: Not Selected
more ▼

asked Aug 07 '14 at 02:24 AM in Using UE4

avatar image

492 66 64 211

avatar image Duncan Dam Aug 07 '14 at 03:29 AM

Do your reload animation is Animation Montage, and have Slot Name, as it's in Third person animation blueprint ?

avatar image Janyx Aug 09 '14 at 08:08 PM

The reload is a montage, I have a slot name, and yes its Third person blueprint. Haven't solved it yet but currently cleaning up a lot of code... will keep you all posted!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question