Skip to main content
edited tags
Link
Boneco Sinforoso
  • 681
  • 1
  • 20
  • 47
Attempt that I made based on a user's comment.
Source Link
Boneco Sinforoso
  • 681
  • 1
  • 20
  • 47

In the level blueprint I made a code so that after 5 seconds an NPC was spawned, it happens that it does nothing.

Only the NPC I added by the level editor acts correctly.

Image of what happens:

enter image description here

Level Blueprint:

enter image description here

NPC Blueprint:

enter image description here

I did a search, because I imagine that to solve this is to just modify the event to some of the type: When created or when spawned.

Search:

enter image description here

I also thought of something like an event involving the collision between the NPC and the ground, but I considered it silly.

Link I found and at first I'm thinking that the solution may not be as simple as this:

https://answers.unrealengine.com/questions/204154/event-dispatcher-on-a-spawned-actor.html


EDIT 1 (Attempt based on ColdSteel's comment)

I added 2 impressions to see if the Event Begin Play was not even running:

enter image description here

The event is being started correctly and the loop is also:

enter image description here

But the NPC does not go towards the target points and I do not know the reason.

In the level blueprint I made a code so that after 5 seconds an NPC was spawned, it happens that it does nothing.

Only the NPC I added by the level editor acts correctly.

Image of what happens:

enter image description here

Level Blueprint:

enter image description here

NPC Blueprint:

enter image description here

I did a search, because I imagine that to solve this is to just modify the event to some of the type: When created or when spawned.

Search:

enter image description here

I also thought of something like an event involving the collision between the NPC and the ground, but I considered it silly.

Link I found and at first I'm thinking that the solution may not be as simple as this:

https://answers.unrealengine.com/questions/204154/event-dispatcher-on-a-spawned-actor.html

In the level blueprint I made a code so that after 5 seconds an NPC was spawned, it happens that it does nothing.

Only the NPC I added by the level editor acts correctly.

Image of what happens:

enter image description here

Level Blueprint:

enter image description here

NPC Blueprint:

enter image description here

I did a search, because I imagine that to solve this is to just modify the event to some of the type: When created or when spawned.

Search:

enter image description here

I also thought of something like an event involving the collision between the NPC and the ground, but I considered it silly.

Link I found and at first I'm thinking that the solution may not be as simple as this:

https://answers.unrealengine.com/questions/204154/event-dispatcher-on-a-spawned-actor.html


EDIT 1 (Attempt based on ColdSteel's comment)

I added 2 impressions to see if the Event Begin Play was not even running:

enter image description here

The event is being started correctly and the loop is also:

enter image description here

But the NPC does not go towards the target points and I do not know the reason.

Source Link
Boneco Sinforoso
  • 681
  • 1
  • 20
  • 47

Actor does not perform action when spawned?

In the level blueprint I made a code so that after 5 seconds an NPC was spawned, it happens that it does nothing.

Only the NPC I added by the level editor acts correctly.

Image of what happens:

enter image description here

Level Blueprint:

enter image description here

NPC Blueprint:

enter image description here

I did a search, because I imagine that to solve this is to just modify the event to some of the type: When created or when spawned.

Search:

enter image description here

I also thought of something like an event involving the collision between the NPC and the ground, but I considered it silly.

Link I found and at first I'm thinking that the solution may not be as simple as this:

https://answers.unrealengine.com/questions/204154/event-dispatcher-on-a-spawned-actor.html