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 make it so when a player comes in contact with an oject it restarts the level?

How can I make it so when a player comes in contact with an oject it restarts the level?

Product Version: Not Selected
Tags:
more ▼

asked Jun 28 '16 at 01:16 PM in Blueprint Scripting

avatar image

TechMond Studios
6 1 2 2

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

2 answers: sort voted first

You will need to add a collision component to the object you want the player to collide with. Right click the collision component and select "Event Actor Begin Overlap". This will create a new node on the event graph. It will give you an execution pin and an actor pin. You can drag from the actor pin and cast it to the Player that you want to overlap it. If the cast to you Player is successful, you can then use a node such as "Open Level" and type in the name of the level EXACTLY as it is typed (copy & paste).

You will also need to make sure that both collision components for your player and for the object you are wanting to collide with have "Generate Overlap Events" enabled.

Here is some documentation!

Hope this helped!

more ▼

answered Jun 28 '16 at 03:56 PM

avatar image

mdmoberly
205 13 25 27

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

you can also use the 'get current level name' node to plug into the 'open level>level name' input pin.

more ▼

answered Feb 19 '19 at 04:39 PM

avatar image

Adam USW
16 1 1

(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