ActivatedElectrifiedComponent.cs 430 B

1234567891011121314
  1. namespace Content.Server.Electrocution;
  2. /// <summary>
  3. /// Updates every frame for short duration to check if electrifed entity is powered when activated, e.g to play animation
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class ActivatedElectrifiedComponent : Component
  7. {
  8. /// <summary>
  9. /// How long electrified entity will remain active
  10. /// </summary>
  11. [ViewVariables]
  12. public float TimeLeft = 1f;
  13. }