Dynamically changing keyvalues.

Discussion in 'Mapping Questions & Discussion' started by Untouch, Nov 24, 2012.

  1. Untouch

    Untouch L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    43
    Alright, there's some things I'd like to test out involving player keyvalues.
    The problem is, the only way I know of is ent_keyvalue, BUT it only works with hammerids, and as far as I know, players cannot have hammerids.

    Is there any other way to change keyvalues?
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    The AddOutput input serves a dual function, adding outputs and changing keys. Set the parameter to the key name and the desired value, separated by a space. Note that not all keys will recognize a change when altered at runtime.
     
    • Thanks Thanks x 2
  3. Untouch

    Untouch L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    43
    That worked, thanks.

    One more question though.
    There's a bunch of extra keyvalues, I'd like to resize the player, I know the keyvalue for it is m_flModelScale.

    It won't work though, is this an SDK thing?
    That's how the SM plugin does it.
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    That's not a key that is exposed to the entity system, it is only for the code.
     
    • Thanks Thanks x 1