17 if (!IsValidEntityType(editableEntity.GetEntityType()))
20 IEntity owner = editableEntity.GetOwner();
28 if (damageComponent.GetState() ==
EDamageState.DESTROYED)
33 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
39 IEntity owner = editableEntity.GetOwner();
47 if (!damageComponent.IsDamageHandlingEnabled())
50 float health = (var.GetFloat() / 100);
52 HitZone defaultHitzone = damageComponent.GetDefaultHitZone();
54 defaultHitzone.SetHealthScaled(health);