-
Notifications
You must be signed in to change notification settings - Fork 1
Home
John Money edited this page Aug 23, 2022
·
1 revision
Addon for MMORPG Kit provides custom BuildingEntity that enables players to set their respawn point.
- edit Language.cs and add the following:
public enum UITextKeys : ushort
// Addon - RespawnEntity
UI_RESPAWN_BIND_DIALOG,
UI_RESPAWN_BIND_SUCCESS,
public static class DefaultLocale
// Addon - RespawnEntity
Texts.Add(UITextKeys.UI_RESPAWN_BIND_DIALOG.ToString(), "Would you like to bind here? If your character dies, you will return to life at the last bind location used.");
Texts.Add(UITextKeys.UI_RESPAWN_BIND_SUCCESS.ToString(), "You are bound here.");
- create RespawnEntity prefab and add RespawnEntity component
- add RespawnEntity prefab to Scene and save to buildings table with BuildingEntity Manager
- ensure MapInfo start position is near default RespawnEntity
RespawnEntity settings are found on the GameInstance component:
- ShowRespawnEntityDialog (true = dialog appears confirming bind, false = immediate bind)
Optionally replace strings in LanguageManager on GameInstance component:
- UI_RESPAWN_BIND_DIALOG
- UI_RESPAWN_BIND_SUCCESS