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"

How can I trigger a custom event from my actors BP?

I am currently trying to respawn the play if they die I think I have it setup right but I can not figure out how to trigger the respawn event from the player BP

Respawn in map BP alt text

The death part of the play BP that I have no idea how to make it trigger the custom event on the level BP alt text

I would love someone to help me out with this :D

Product Version: UE 4.15
Tags:
more ▼

asked Jul 25 '17 at 12:51 AM in Blueprint Scripting

avatar image

PixelPacker
3 2 3

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

1 answer: sort voted first

As far as I am aware it is impossible to call custom events in the level blueprint directly from another blueprint without using C++.

Personally I would move your level blueprint stuff into your game mode and use an event dispatcher on your character to trigger the respawn. Just remember that once you destroy an actor you can no longer run any behaviour so before you destroy you need to call your event dispatcher otherwise it won't work.

more ▼

answered Jul 25 '17 at 01:26 AM

avatar image

Ruffhaus Games
663 13 9 23

avatar image PixelPacker Jul 25 '17 at 02:25 AM

I have done this and I made the gamemode find all actors of the respawn points and it can now respawn the players but if the server kills the client it now will respawn the server window. I am trying to figure out the best of finding what player died.

avatar image Ruffhaus Games Jul 25 '17 at 04:20 AM

You could put an input that gets a reference to that player's controller, fed by self on the event dispatcher or whatever means you are using to call your respawn function and use that to do different things based on which player was killed.

You'll have to forgive me I'm not too up on the blueprint networking stuff, so I'm not going to be much help with that. You might be better served asking another question in the networking section specifically.

Glad to be of help with the first part though.

(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