Page 1 of 1

Respawn Point

Posted: Tue Sep 25, 2018 9:34 am
by GorkaGames
Hi,

I need to set up a new respawn point every time the player is on a new Quest and Quest Node.
Any Ideas to have it persistent (between scenes and loading / saving).

Thanks

Re: Respawn Point

Posted: Tue Sep 25, 2018 10:18 am
by Tony Li
Hi,

You can write a Saver component. There's a starter script in Plugins / Pixel Crushers / Common / Templates / SaverTemplate.cs. It has instructions in the comments. Look at the other Saver scripts such as PositionSaver.cs for some examples.

If you have questions about it, please let me know how you're setting up the respawn points.

Also, it might be helpful to write a quest action to set up respawn points. You can find a starter script in Plugins / Pixel Crushers / Quest Machine / Templates / QuestActionTemplate.cs.