#how do you respawn with your selected actor after dying

1 messages · Page 1 of 1 (latest)

nimble shell
#

So I made a game and when you get an item you can switch your character but when I die with that character I respawn as the original character that you start with. I keep the weapon from the character I chose but nothing else no Ui and no character ik how to do the ui part but I want to have the character after as well

odd cargo
#

You should use a dummy main actor, when its created

If Character Current Id = 1
Set main actor = ur actor

Repeat it to all actors

#

When you get an item, set Character Current ID = 2 or?
Wait 0.2
Execute main actor respawn

#

For the Character Current ID, you use a Config table

#

Idk, but it works for me. There might be an easier way, but idk