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"

A character teleported slightly above ground is automatically put on the ground?

I was trying to teleport my character 30 units above the ground, but noticed that nothing happened. Then I did some testing and saw that teleporting anything less than 46 units automatically places your character on the ground. I assume this isn't a glitch but rather a is a built-in thing so characters can teleport on the ground correctly, but what should I do if i want to teleport slightly above the ground?

You can try this yourself by adding the below code to the third person template. Change the Z value to 50 and suddenly the player will teleport.

alt text

Product Version: UE 4.10
Tags:
teleport.png (95.4 kB)
more ▼

asked Nov 12 '15 at 12:56 AM in Blueprint Scripting

avatar image

Ohriginal
26 1 3 7

avatar image LemonInGintonic Nov 12 '15 at 05:40 AM

Try to teleport him to another player start location

avatar image Ohriginal Nov 13 '15 at 12:14 AM

Not really sure where you're getting at. The issue is that spawning slightly above ground results in the character being teleported on the ground. For example, if the ground is at 0, teleporting the character to 0,0,10 will actually teleport him to 0,0,0. This goes for 0,0,20 and 0,0,30 and 0,0,40. If I teleport to 0,0,50, the character will actually go to that exact spot then fall down.

alt text

teleport2.png (319.9 kB)
(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I figured it out. CharacterMovement, the component that Characters have in them by default, will automatically move the character to the ground when it is teleported slightly above or below the ground. I had to set MovementMode to None, move the actor 30 units above ground, then set MovementMode to falling for the teleport to work

more ▼

answered Nov 15 '15 at 04:25 AM

avatar image

Ohriginal
26 1 3 7

(comments are locked)
10|2000 characters needed characters left
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