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"

can't reference my Firstperson Carracter blueprint

I'm kind of new to Unreal and i just started to make my first game, but i have a small problem which makes it really difficult to do anything that is not in the first level. the thing is that i can't reference my player character in any new level i make, cause you spawn in the new level from a player start. this means that my player character won't actually be in the level until i hit play. placing the player character in the world does not do the thing for me.

is there a way to fix this? is it possible to let the player spawn as/inn the player character in stead of the player start?

Product Version: UE 4.11 Preview
Tags:
more ▼

asked Feb 08 '16 at 04:43 PM in Blueprint Scripting

Silensir gravatar image

Silensir
11 3 4 5

FilipeTessaro gravatar image FilipeTessaro Feb 09 '16 at 12:45 PM

I´m not sure if I understood your question. But you can delete the player start from your level, and just drag your player character to all your levels, like you do to any actor. it will work aswell.

Please reply if I misunderstood you.

Silensir gravatar image Silensir Feb 09 '16 at 03:17 PM

thank you for your reply. i think you understood, but when i delete my player start ,drag my player character in to the level and hit play, i still don't spawn in the player character that i dragged in. it's true that i can now reference my player character in my level blueprint. but when i reference a variable that i made in the player character blueprint it will somehow not send/change the information when this should happen.

FilipeTessaro gravatar image FilipeTessaro Feb 09 '16 at 03:20 PM

ok, you are trying to reference the character as an actor in the level, right?

It is not correct, you need to cast to your character to get its variables and etc.

Show me your BP from where you are trying to get reference to you character and tell why you need that, so it wil be easier for me to help you.

PS: unchange what I said before, that is not the problem.

Silensir gravatar image Silensir Feb 09 '16 at 08:17 PM

i have already solved the original problem. but i think that i am going to run in to this again in the future so it would be good to now what i did wrong. I've tried to recreate what i did, it is not exactly the same but it should cover the problem.

this is without the player character in the level. alt text

what i did.png (84.9 kB)
FilipeTessaro gravatar image FilipeTessaro Feb 09 '16 at 08:26 PM

ok, this bp in the picture, is inside the player character event graph?

Silensir gravatar image Silensir Feb 09 '16 at 09:21 PM

No, it's in the level blueprint, because i can't reference the AI Friend in the player character bp (as far as i now)

FilipeTessaro gravatar image FilipeTessaro Feb 09 '16 at 09:31 PM

yes, you can, but here the target has nothing, the error in the image says that you have no actor target there, you need to cast to your player to make the ai moves to it. or change the goal location to another thing, like a target point.

If you want the AI to ove to your player´s location, uses the nodes: "GetAllActorsOfClass", select your player character, then drag fro it the "Get" node, it will make the reference for you

Silensir gravatar image Silensir Feb 16 '16 at 08:24 PM

sorry for not responding quickly, i was away for a few days. the thing is that i am getting the hit location of where my player is aiming at that moment from the player character blueprint (that is the 'Hit Location' variable in screenshot above). this is a problem because i can not reference my third person character as i sad earlier.

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

0 answers: sort voted first
Be the first one to answer this question
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