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"

Unable to move in targetPoint to blueprint dropdown

I have this code

// Fill out your copyright notice in the Description page of Project Settings.

pragma once

include "CoreMinimal.h"

include "AIController.h" #include "Runtime/Engine/Classes/Engine/TargetPoint.h" #include "MyAIController.generated.h"

/** / UCLASS() class FPS_API AMyAIController : public AAIController { GENERATED_BODY()

public: UPROPERTY(EditAnywhere, BlueprintReadWrite) ATargetPoint* targetPoint; UPROPERTY(EditAnywhere, BlueprintReadWrite) float haha;

};

I made a blueprint of this class and am moving in a targetpoint in the game world into the blueprint but it doesn't go there. The dropdown menu just keeps saying none. I made a float and I am able to put a number inside it but any sort of actor does not work

Product Version: UE 4.20
Tags:
more ▼

asked Aug 15 '18 at 09:16 AM in C++ Programming

avatar image

GuriWar
1 1 2

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Try setting your Target point as an actor instead:

 // ...
 public:
 UPROPERTY(EditAnywhere, BlueprintReadWrite)
 AActor* targetPoint;
 // ...
more ▼

answered Aug 15 '18 at 12:44 PM

avatar image

dZh0
1.2k 6 5 8

avatar image GuriWar Aug 15 '18 at 10:26 PM

I tried this but it still didn't work. I can't select any Actors from the dropdown or drag in any.

avatar image dZh0 Aug 17 '18 at 09:16 AM

Your code seems fine... Did you "rebuild" your project from the editor before trying to add the actor?

(comments are locked)
10|2000 characters needed characters left

I figured it out, the reason it isn't working is because my blueprint isnt in the level. Seems I can only add to blueprints in the level and have to plug in my variables during runtime.

more ▼

answered Aug 17 '18 at 02:30 PM

avatar image

GuriWar
1 1 2

avatar image dZh0 Aug 17 '18 at 10:17 PM

Oh well...

I thougt that “...moving in a targetpoint in the game world...” meant that you have placed the target point in the level.

Anyway, you should close your question.

avatar image GuriWar Aug 18 '18 at 02:32 AM

My target point was in the level but my blueprint was not

(comments are locked)
10|2000 characters needed characters left
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