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"

Teleporting Player Problem in Standalone Game

Hi ! I'me doing a teleport function to make different player spawn as well as standard teleport on my map. I've done something like this : alt text

It works perfectly fine in the Viewport. However, when trying to test it on a Standalone Game, something strange happend and the character fall through the ground (which doesn't happend in the viewport test). The "Teleport" node Return value is true. I've tried changing "Teleport" for a "Set actor location" but the same happends, the character fall. Also, it seems that the character isn't falling from the teleport start or end, but from another random point of the game (always the same)

I haven't tried to do an executable file but I fear that the same happend... Any idea about what is happening or way to solve/avoid this ?

Thank you for your answers

Product Version: UE 4.10
Tags:
more ▼

asked Mar 18 '16 at 01:54 PM in Blueprint Scripting

avatar image

PxStardust
11 4 7 11

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

1 answer: sort voted first

Hello,

Instead of getting the Sprite Component of your TargetPoint1, try doing a Get Root Component and then getting the world location of the root component and plugging that into the teleport node. Let me know if that helps.

Have a great day

more ▼

answered Mar 18 '16 at 03:53 PM

avatar image

Sean L ♦♦ STAFF
43.5k 485 152 443

avatar image PxStardust Mar 18 '16 at 05:57 PM

Indeed it worked ! Thanks a lot ! Is it possible to get an explanation on my mistakes ? I am not really sure about it. Is the Sprint Component only the picture and is "stored" at (0,0,0) or something?

avatar image Sean L ♦♦ STAFF Mar 18 '16 at 08:14 PM

The Sprite Component does not have a world location, because the sprite does not actually exist in the world. It is just there in the editor to give you a visual representation of where your target point is located. Getting the root component gives you the "main body", so to speak, of the target point, which you can then get the world location of in order to use it to teleport your player.

Hope that helps

(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