Addon for MMORPG Kit provides custom BuildingEntity that enables players to set their respawn point.
Kit respawn is static and set by map or faction. RepawnEntity introduces gameplay common in many MMOs, enabling players to set their own respawn point by interacting with an object.
- (Core edit) 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