11 if (!IsGameMode(item))
return null;
13 SCR_RespawnSystemComponent respawnSystem = SCR_RespawnSystemComponent.GetInstance();
14 if (!respawnSystem)
return null;
16 bool value = respawnSystem.IsRespawnEnabled();
21 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
36 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
40 SCR_RespawnSystemComponent respawnSystem = SCR_RespawnSystemComponent.GetInstance();
44 bool value = var.GetBool();
49 if (value != respawnSystem.IsRespawnEnabled())
53 SCR_NotificationsComponent.SendToEveryone(
ENotification.EDITOR_ATTRIBUTES_RESPAWN_ENABLED, playerID);
56 SCR_NotificationsComponent.SendToEveryone(
ENotification.EDITOR_ATTRIBUTES_RESPAWN_DISABLED, playerID);
61 respawnSystem.ServerSetEnableRespawn(value);