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"

I can't connect Cast to Target

I'm trying to make a score system, and the final step is to connect the Cast 2DSideScrollerGameMode to the Target. However, the program's telling me it can't be done.

Here's a picture of the blueprint. alt text

Any help or alternative to get this two connected?

Product Version: UE 4.15 Preview
Tags:
more ▼

asked Feb 14 '17 at 07:09 PM in Using UE4

avatar image

AlecLynch
6 2 4

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

2 answers: sort voted first

The target for your Add Target Points function is "Map Gamemode", not "2DSideScrollerGameMode". Map Gamemode needs to be a child of 2DSideScrollerGameMode for this to work.

You could try casting to Map Gamemode instead. But it depends on the rest of your setup if that will give you the desired results.

more ▼

answered Feb 14 '17 at 07:27 PM

avatar image

Fotosynthesis
146 1 4 4

avatar image AlecLynch Feb 14 '17 at 08:30 PM

Fixed it! Thanks a lot!

avatar image Fotosynthesis Feb 15 '17 at 12:28 PM

No problem, good luck with your project!

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

it's becayse "Add Target Points" is an event from "Map Gamemode" and you're trying to conect a "2DSideScrollerGameMode" it will only work if "Map Gamemode" is parent of "2DSideScrollerGameMode", otherwise it doesn't even make sense, you're trying to call an event that doesn't exist in the "2DSideScrollerGameMode" you need to implement this event in the 2DSideScrollerGameMode too, or use the Map Gamemode and cast to it.

if for some reason you have an event with the same name in both classes and still can't connect, grab the gamemode reference (return parameter from the cast) and type "Add Target points" to call the SideScroller's event, the one in your blueprint is an event from another gamemode.

more ▼

answered Feb 14 '17 at 07:27 PM

avatar image

veccher
1.1k 31 17 66

(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