Respawn Point

Announcements, support questions, and discussion for Quest Machine.
Post Reply
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Respawn Point

Post 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
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Respawn Point

Post 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.
Post Reply