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"

Problem upon respawning character, movement locked

Hi,

I'm having a problem with respawning my character. When I respawn the character, it can not move. Is there something wrong with my code setup where I set the movement to deactivate and back to activate? I've been breaking my head over this for 3 days now. Any help would be greatly appreciated! I attached screenshots of my code.

Thanks in advance!

alt text

alt text

alt text

Product Version: UE 4.13
Tags:
more ▼

asked Sep 23 '16 at 01:48 PM in Blueprint Scripting

avatar image

Rebel Camp Games
20 4 7 11

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

1 answer: sort voted first

Your approach might not be the best. Instead of killing the character, why not change it's location to the spawning point, resetting it's variables?

Also, when you spawn a character you still need to posses it (https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/)

Anyway if you want to destroy and create a new one, you issue is, if the character BP has been destroyed, then how is it going to spawn the character again, since the BP that is calling spawn doesn't exist anymore? You need to spawn the new character, then posses the new character, then destroy the old one.

more ▼

answered Sep 23 '16 at 02:35 PM

avatar image

Night Watcher
1.7k 44 12 71

avatar image Haoris Sep 23 '16 at 03:13 PM

This. Or put your logic in a persistant blueprint

avatar image Rebel Camp Games Sep 23 '16 at 04:16 PM

Thanks! I got it working, now I rewrote my blueprints to use destroy actor, then spawn actor of class, then possess it and it works :D

(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