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"

How do I reference my first person character?

Hi there,

I'm very new to Unreal Engine. I followed a tutorial by 'UnrealCG' to make my character push grass/wheat aside when colliding with it, however, I don't think i'm referencing my FP character correctly as the tutorial worked immediately with a 3rd person character reference from the world.

Here's the level blueprint alt text

And this is the world position offset in my grass/wheat material alt text

I also get this error when I hit play [Accessed none trying to read property]. alt text

Cheers in advance.

Product Version: UE 4.18
Tags:
error-01.png (119.6 kB)
error-02.png (201.1 kB)
error-03.png (3.8 kB)
more ▼

asked Apr 06 '18 at 12:03 PM in Using UE4

avatar image

YoungRookster
1 1 2 2

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

3 answers: sort voted first

Well... Try to reconnect nodes to "Event Tick→Cast to PlayerCharacter→Set Vector Parameter Value".
But, maybe it doesn't run even if you change the node like it...

If so, please reply to this.

more ▼

answered Apr 06 '18 at 03:29 PM

avatar image

creatorue
41 9 10

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

Thanks for the reply,

It stopped the error happening so I assume it worked! Although it still isn't making the wheat move. Is it perhaps a collision option that I'm unaware of?

Here's the re modified blueprint (Hope I got it right) alt text

And here's my wheat mesh collision properties

alt text

Thanks again.

error-04.png (106.9 kB)
error-05.png (34.6 kB)
more ▼

answered Apr 06 '18 at 10:48 PM

avatar image

YoungRookster
1 1 2 2

avatar image Nebula Games Inc Apr 07 '18 at 03:47 AM
  1. you shouldn't run this off tick, maybe an overlap connected to a timeline or something that shuts off when the player stops contacting the wheat

  2. Your collision is set to "no collision" so nothing will happen, that is why the wheat doesn't move

avatar image YoungRookster Apr 07 '18 at 07:37 AM

Thanks for the tips. Should I set the wheat to trigger, and if so, which nodes would one use to check whether your FP character is colliding with the wheat? I've been attempting to do as you said, unfortunately to no avail.

avatar image Nebula Games Inc Apr 07 '18 at 12:29 PM

It doesn't really matter what you use as long as the collision setting you apply overlaps pawns. And the nodes you use are "on overlap" and "cast to (whatever your character is)"

avatar image YoungRookster Apr 07 '18 at 12:49 PM

Ok i'll give it a shot in the morning, thanks a bunch for your help :)

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

If anyone finds this post and is interested in the solution the mesh is set to NoCollision and this is the level BP layout alt text

Note that this is for the first person character.

Set the vector parameter value to a material parameter.

Here is the material layout you'll need too alt text

Thanks to everyone who helped

123.png (85.3 kB)
1234.png (112.3 kB)
more ▼

answered Apr 10 '18 at 08:29 AM

avatar image

YoungRookster
1 1 2 2

(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