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 to teleport from a blueprint to another blueprint ?

So I want to make the player able to be teleported from a blueprint actor ( a platform ) to another platform. I know I can do it in the level blueprint but I want to do it like that : platform A blueprint : on component begin overlap ( + input key ) --> teleport to platform B platform B blueprint : on component begin overlap ( + input key ) --> teleport to platform A

Product Version: UE 4.16
Tags:
more ▼

asked Jan 09 '18 at 10:16 AM in Blueprint Scripting

avatar image

misterrider
1 4 8

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

2 answers: sort voted first

What is your question? I'd keep a reference to the target platform. Are you having a specific problem?

more ▼

answered Jan 09 '18 at 12:11 PM

avatar image

salm
164 2 3 6

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

Hey there, i would do the following:

  • Create a variable on the platform blueprint called Teleport Platform and set it to be the type of the platform and make it instance editable

  • Create another boolean variable called Is Player On Platform (or somethign like that)

  • On Component Begin Overlap get the player controller and enable input for it, set Player On Platform to true (you might need to do a cast from Other Actor to make sure you are talking to a player)

  • Create an input action mapping to teleport on the platform and if Player On Platform is true you use Set Actor Location to the Teleport Platform's Location.

  • On Component End Overlap get the player contorller and disable input for it, set Player On Platform to false

more ▼

answered Jan 09 '18 at 12:34 PM

avatar image

xlar8or
6k 163 129 305

(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