ent_varible

Discussion in 'Mapping Questions & Discussion' started by Exist, Dec 13, 2010.

  1. Exist

    Exist L6: Sharp Member

    Messages:
    306
    Positive Ratings:
    112
    I'm wondering, is there a entity that can hold a number and be named?

    Example if you don't understand; func_breakable has a health parameter. Insted of using a number, I use the name of the ent_variable (this entity holds the number and is named) to determind the health.
     
  2. Penguin

    aa Penguin Clinically Diagnosed with Small Mapper's Syndrome

    Messages:
    1,992
    Positive Ratings:
    1,233
    math_counter

    but your application is not correct.

    if you wanted to change up breakable health on the fly, you'd use addoutput.
     
    • Thanks Thanks x 1
  3. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    I would have to warn you, though, that storing strings or anything more complicated than simple math in entities is not very robust. There is only one way to transmit an entity name, and it's far from flexible.
     
    • Thanks Thanks x 1