x

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"

[Solved]How to get ismovingonground()

I haven't used unreal engine since version 4.8 but I just recently got back into it and now I can't seem to get ismovingonground() to work. I tried getcharactermovement and charactermovement->ismovingonground and it just comes back saying it is not accessible or pointer to incomplete class is not found.

 void AMyCharacter::moveJump()
 {
     if (CharacterMovement->IsMovingOnGround())
     {
         LaunchCharacter(FVector(0, 0, 300), false, false);
     }
 }

this is the code for my jump function. I had the same issue with inputcomponent but for that I had to include a header file so I don't know whether I have to include a header for this to work or whether I have to do something different

Product Version: UE 4.16
Tags:
more ▼

asked May 28 '17 at 12:52 PM in C++ Programming

avatar image

ArgenisXD
3 3 7 7

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

1 answer: sort voted first
 #include "GameFramework/CharacterMovementComponent.h"

gets rid of the error and

 GetCharacterMovement()->IsMovingOnGround()

aside from that you can ignore those errors if it Compiles its fine.

more ▼

answered May 28 '17 at 01:28 PM

avatar image

Nachtmahr
7k 143 28 172

avatar image ArgenisXD May 28 '17 at 01:55 PM

Worked thank you!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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