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"

[Closed] Problem with projectile - Collision Component is pending kill

Hello

I have error log. In game nothing bad happens, but I have error message like this:

Error Blueprint Runtime Error: Attempted to access CollisionComponent via property K2Node_Event_OtherComp, but CollisionComponent is pending kill from function: 'ExecuteUbergraph_BulletProjectile' from node: Branch in graph: EventGraph in object: BulletProjectile with description: Attempted to access CollisionComponent via property K2Node_Event_OtherComp, but CollisionComponent is pending kill

How to avoid this?

Thank you

Product Version: UE 4.15
Tags:
more ▼

asked Mar 01 '17 at 11:03 PM in Blueprint Scripting

avatar image

Vaheva
633 13 10 21

avatar image mertyildiran Aug 05 '17 at 08:31 AM

This question is need to be answered. I'm having lags because of the same error, I don't know why this error pops up.

avatar image Unzkilled Dec 03 '17 at 01:55 PM

Are you using the event Hit on your projectile?

avatar image Matei Dec 04 '17 at 02:11 PM

I am using EventHit and also Event ActorBeginOverlap...

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

The question has been closed Dec 06 '17 at 08:34 PM by Vaheva for the following reason:

The question is answered, right answer was accepted


2 answers: sort voted first

I'm closing it now, this is very old question. Now I use a lot IsValid check - when you put it on projectile it will work only when is valid, means exists in world and not begin destroy. If is or will be destroyed, you not need additional actions, so it will be ignored and no more error messages like this. IsValid check is very important and it should be used in many other situations where actor, projectile etc can be destroyed and not only. Sometime it is not yet created and game code can want to do something with object, so before is good to add IsValid. https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/IsValid/ Return true if the object is usable : non-null and not pending kill This can be pure or normal.

more ▼

answered Dec 06 '17 at 08:33 PM

avatar image

Vaheva
633 13 10 21

avatar image Matei 6 days ago

Thank you, it works but now I have another similar problem: Spawned emitter attached spawned potentially immortal particle. Is there any solution for this?

avatar image Vaheva 6 days ago

Two solutions, I use both sometimes for same particle. First and correct way is set particle lifetime (in particle editor). Here various settings. And on create check Auto Destroy [x]. Second - destroy it manually after time or before creating new one. I have it for gun muzzle, it have lifetime but with abusive spawn it sometimes can't be destroyed normal way. So I have it as variable - after spawn, set variable from this particle. Then, when you will spawn new one same type, to not overlap do another test IsValid. If this particle variable is valid - destroy it and set variable as none.

Here how it looks. I have custom event destroy after time. But this event is also fired before another shot, if particle is valid. I'm not sure this is best solution, but works as expected and I have no issues with it. alt text

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

I have exactly the same problem...do you have any idea how to solve it?

more ▼

answered Dec 04 '17 at 02:09 PM

avatar image

Matei
1 2 2

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

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question