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"

Why is the character porting back?

I got a problem with switching characters. I can switch them in the game but if I press the button the new character is at the start point again and not on the location where the old character was.How can I fix it?

Product Version: UE 4.20
Tags:
4.png (153.6 kB)
more ▼

asked Jul 27 '18 at 11:33 PM in Blueprint Scripting

avatar image

Xenovia13
7 1 1 1

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

My first guess would be that the code after the Destroy node is not executed since this actor will be Pending Kill. You should see some errors in the log.

Consider moving the Destroy node to the end of the execution chain so everything else has a chance to fire first.

more ▼

answered Jul 28 '18 at 01:05 AM

avatar image

Everynone
12.1k 71 24 49

avatar image Xenovia13 Jul 28 '18 at 07:43 AM

It does the same thing even with moving the destroy node to the end or middle. There are not any errors in the log.

avatar image Everynone Jul 28 '18 at 09:07 AM

Try using the characters's transform rather than the controller's. Maybe? Not sure.

(comments are locked)
10|2000 characters needed characters left

It's meaningless trying to get the transform of the player controller as far as I know; it doesn't have a physical form and is not in the same location as the player character (as far as I know, the player controller doesn't actually move). Get the transform from the player character instead before you destroy it.

more ▼

answered Jul 29 '18 at 04:38 AM

avatar image

cridia
815 29 24 102

(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