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"

[Bug] 4.6 Cannot use Instigator in BluePrints

When getting the instigator from the "Event Any Damage" event on an object, Casting to your Pawn BP or your Controller BP fails. Steps:

  1. In Pawn BP, spawn a projectile

  2. Set the Instigator to your Pawn using Self node. It will not let you set it to the Controller...requires it be a Pawn Node. Also, according to the 4.4 release notes (https://docs.unrealengine.com/latest/INT/Support/Builds/ReleaseNotes/2014/4_4/index.html), if you don't set it, it should automatically take your Pawn as the instigator as the spawning context

  3. In an actor that is receiving damage from the projectile, drag out the instigator and try to cast. There are only the Controller blueprints available to cast, even though it required that you use a Pawn. Under pawns, there is an option to cast to a controller there, but that cast fails also.

Basic problem appears to be that when you set the instigator for the projectile from your Pawn, it requires the instigator be a Pawn class. When you try to use the instigator in a damaged actor, it thinks it's trying to cast to a Controller.

Running this on Mobile device and Mobile Preview.

PS....using a Mac. Don't know if Windows works any differently.

Product Version: Not Selected
more ▼

asked Dec 07 '14 at 06:39 AM in Bug Reports

avatar image

27 3 5 12

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

1 answer: sort voted first

I'd say the solution for this would be for the Apply Damage node to check if its Outer blueprint has a projectile movement component, and if so, if the instigator parameter is null it should get the controller of the Outer's instigator and set that correctly for you.

However, the Apply Damage node is currently an autogenerated node from UGameplayStatics::ApplyDamage so this would require creating a custom K2Node for it.

In the meantime you can use this as a workaround inside your projectile's blueprint:


more ▼

answered Dec 07 '14 at 09:19 PM

avatar image

1.5k 55 36 73

avatar image ByronBBB Dec 08 '14 at 02:07 AM

Awesome! That worked. I added the Instigator Controller to the Apply Damage node as suggested, and now it's working.

Thanks for the help, Twiddle!

(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