1. Hello there i am Making a script, atm that will pup lights on the Dome and Rad town etc
    and other, places on the map,

    ive a Question How can i set health of the Lanten/ceiling Light to example? 1000 health
     

    Attached Files:

  2. You need to access _health and _maxHealth of the BaseCombatEntity by a Fieldinfo:
    Code:
    private FieldInfo _lightHealth = typeof(BaseCombatEntity).GetField("_health", (BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic));
    private FieldInfo _lightMaxHealth = typeof(BaseCombatEntity).GetField("_maxHealth", (BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic));
    
    this can be used then with "Setvalue", example:
    Code:
    _lightHealth.SetValue(lightentity, 1000f);
    _lightMaxHealth.SetValue(lightentity, 1000f);
    is using a custom variable for the health:
    Code:
    _lightHealth.SetValue(lightentity, Convert.ToSingle(inputvariable));
     
  3. Yo t
    Yo thanks for your reply Mate,