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"

[4.7.1] Get Player Character not callable in Construction Script for blueprint

HI, I am repoducing the c++ programming tutorial. I can not figure why the function "Get Player Character" is not find in the construction script for the BatteryPickup Blueprint.

Any reason could explain why this function cannot be call ? I tried to uncheck the context sensitive filter and check for a similar question on the forum but I could not find an answer.

More surprising, I can call it in the event graph...

Any help welcome :P

Product Version: Not Selected
Tags:
more ▼

asked Mar 04 '15 at 04:10 PM in Blueprint Scripting

avatar image

Sky3
26 2 4 9

avatar image Mortusnyte Mar 04 '15 at 07:54 PM

Perhaps because no player character exist before the game begins? Just a guess.

avatar image Sky3 Mar 04 '15 at 09:20 PM

alt text

True, I still not figure how to unlock this capabilities in the engine. It should be ok as described below for small function calls. The function described in the video is quite small so instead of the construction script it can be call in the Event Graph after the event "Even Begin Play".

screenu.png (93.6 kB)
avatar image Lovecry Mar 05 '15 at 02:38 PM

ok it works, thanks

avatar image Sky3 Mar 05 '15 at 04:58 PM

Yep as Mortusnyte explains there is no player character when the game begins...In the next video of the tutorial, nothing happened and they need to hack on a dirty way this event with a tmp Spawn trick.. In 4.7, I guess they make sure this way to initialize is forbidden.

avatar image Lovecry Mar 05 '15 at 12:14 PM

Hi, i have same problem! 4.7.2, i tryed put that in event graph but nothing happened. Sry for my bad english

avatar image GillesCll Mar 11 '15 at 03:59 PM

In fact same thing here... I put the code in the event graph and nothing happens... Any news about that...

Thank's

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

1 answer: sort voted first

Thank's it help me to...:)

more ▼

answered Mar 11 '15 at 02:34 PM

avatar image

GillesCll
1 1

(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