Blueprints Visual Scripting for Unreal Engine 5 Book question

I am currently reading ‘Blueprints Visual Scripting for Unreal Engine 5’ by Romero/Sewell.
In chapter 3 it instructs me to create a Third Person Project, using the template and then add the following script to the BP_ThirdPersonCharacter event graph.

The fire effect should appear at the player location, but mine is spawned some distance to the left. Upon examination of the locations ot the player and the fire effect, they are indeed different. Anyone know why this should be, as the fire effect is spawned using the player’s transform?

What’s in the fire effect actor? If there’s a colliding element, the node may try to move it away from the player so no overlapping takes place. You could force spawn location using the dropdown Default Collision Override, or ensure nothing can obstruct the player in the effect fire actor.

There’s no colliding element in the fire effect actor, just a P_Fire and Fire Audio. I also tried setting the ‘Collision Handling Override’ in the spawn node to ‘Always Spawn, Ignore Collisions’, but same result.

What is the chance the p_fire component is offset from the centre of the actor?

image

The book uses the Blueprint_Effect_Fire from Content>StarterContent>Blueprints

I reproduced the blueprint myself and it now works - with no offset!!!

Don’t know what the problem was, but just making a new blueprint with the same components and structure solved the mysterious offset problem. Many thanks for your suggestions.

1 Like

I’ve seen this happen before. It may happen when replacing the root component with another component that has a child attached. One of the old bugs.

I’m pretty new to Unreal, but it’s a bit discouraging when you’re following instructions in the first book you’ve bought and this sort of problem occurs. I think I have a long journey ahead of me before I can attain any level of competence with it.

1 Like

Hi Paul. I’m Marcos Romero, author of the book and of the Romero Blueprints blog.

The problem is on the Blueprint_Effect_Fire of the Starter Content. Someone at Epic Games removed the root scene component to use the particles component as root, but the relative location of the particles component didn’t change to (0,0,0). This is a bug as Everynone mentioned.

A similar problem happens in the Blueprint_Effect_Explosion, but it appears 500 cm above.

I understand your frustration but don’t give up. If you need any help with the content of my book you can email me: romero1978@gmail.com

This goes for any reader of my book who is having a hard time following the content due to changes in the Unreal editor.

1 Like

I’m having the same problem too. However, unlike paul-savage, duplicating the fire effect blueprint and renaming it didn’t work for me. Can anyone or you help me with this? What are some of your solutions?

Hello.

Just for clarify, paul-savage didn’t duplicate the blueprint, he created a new blueprint using the same components.

To adjust these Blueprints, you need to add a scene component and set it as the root component. After that, set the correct 0,0,0 location in the P_Fire particles component.