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"

AnimInstance inherit for setting variables in C++

Trying to implement this https://wiki.unrealengine.com/Animation_Blueprint,_Set_Custom_Variables_Via_C%2B%2B But now getting -1 exit code from engine compiler. Don' know what to do next Engine version is 4.9.2

i created empty class UWomenAnimInstance

UWomenAnimInstance.h

 #pragma once
 
 #include "WomenAnimInstance.generated.h"
 
 
 UCLASS(Transient, Blueprintable, HideCategories = AnimInstance, BlueprintType)
 class UWomenAnimInstance : public UAnimInstance
 {
     GENERATED_UCLASS_BODY()
 };


UWomanAnimInstance.cpp

 #include "Game.h"
 #include "WomanAnimInstance.h"
 
 UWomenAnimInstance::UWomenAnimInstance(const class FPostConstructInitializeProperties& PCIP)
     : Super(PCIP)
 {
 }

Error log

 Error    1    error code: OtherCompilationError (5)    C:\Users\DEADtm\Documents\Unreal Projects\Game\Intermediate\ProjectFiles\Error    Game
 Error    2    error MSB3073: The command ""C:\Program Files (x86)\Epic Games\4.9\Engine\Build\BatchFiles\Build.bat" GameEditor Win64 Development "C:\Users\DEADtm\Documents\Unreal Projects\Game\Game.uproject" -rocket -waitmutex" exited with code -1.    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets    38    5    Game
     3    IntelliSense: cannot open source file "WomanAnimInstance.h"    c:\Users\DEADtm\Documents\Unreal Projects\Game\Source\Game\UWomenAnimInstance.cpp    2    1    Game
     6    IntelliSense: expected a ')'    c:\Users\DEADtm\Documents\Unreal Projects\Game\Source\Game\UWomenAnimInstance.cpp    8    86    Game
     7    IntelliSense: expected a '{'    c:\Users\DEADtm\Documents\Unreal Projects\Game\Source\Game\UWomenAnimInstance.cpp    9    2    Game
     5    IntelliSense: expected a type specifier    c:\Users\DEADtm\Documents\Unreal Projects\Game\Source\Game\UWomenAnimInstance.cpp    8    52    Game
     9    IntelliSense: identifier "SkelControl_LeftUpperLegPos" is undefined    c:\Users\DEADtm\Documents\Unreal Projects\Game\Source\Game\UWomenAnimInstance.cpp    16    2    Game
     4    IntelliSense: name followed by '::' must be a class or namespace name    c:\Users\DEADtm\Documents\Unreal Projects\Game\Source\Game\UWomenAnimInstance.cpp    8    1    Game
     8    IntelliSense: name followed by '::' must be a class or namespace name    c:\Users\DEADtm\Documents\Unreal Projects\Game\Source\Game\UWomenAnimInstance.cpp    13    6    Game
 

Product Version: Not Selected
Tags:
more ▼

asked Nov 25 '15 at 08:29 AM in C++ Programming

avatar image

ney000
5 2 2 4

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

1 answer: sort voted first
more ▼

answered Nov 25 '15 at 01:23 PM

avatar image

ney000
5 2 2 4

(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