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"

Is pending kill by function?

Hi I want to set a box rotating that when player steps on dissapears and make you goin on to the next level.

It works but my set up tells me that I have a blueprint error and is this:

alt text

this is my set up:

alt text

Can you please post an image tutorial of what I have to do in order to remove that error?

Thank you so much this looks simple but I can't find a clue of what I have to do...

Product Version: UE 4.16
Tags:
1.jpg (442.2 kB)
2.jpg (193.9 kB)
more ▼

asked Oct 13 '17 at 06:01 AM in Blueprint Scripting

avatar image

Eden91
6 1 4 6

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

1 answer: sort voted first

Hi there. In the image that you've shown, at the moment you're only destroying the component (the variable Static Mesh). When your update/tick function runs, it expects for the Static Mesh variable to still be alive. When you use the "Destroy Component" function, you're only killing the Static Mesh variable. The DestroyComponent function destroys a component of the actor; not the actor itself. This means that the actor will still run it's functionality such as the Event Tick. The next time the actor ticks, it will call the AddRelativeRotation function on the Static Mesh variable which is now either pending kill or dead; this is why the error is occurring.

If you want to destroy the actor when the player collides with the box, you will need to use the DestroyActor function. This destroys the actor completely. This way, the tick event won't occur and these errors shouldn't occur.

alt text

more ▼

answered Oct 13 '17 at 06:24 AM

avatar image

Hightype
18 3 5

avatar image Eden91 Oct 13 '17 at 06:31 AM

Thank you so much for that clever explanation, this helped me a lot!

I didn't realize I was destroying component instead of actor and that was the troubleshoot.

Thanks for your help! Im glad to see that there's support in this community and I hope someday could do the same for you!

Greetings from Spain

avatar image Hightype Oct 13 '17 at 06:52 AM

No problem. Good luck with your project!

(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